├── .gitignore
├── LICENSE
├── README.md
└── docs
├── 111.ps1.md
├── 123.ps1.md
├── 12344.ps1.md
├── 16ca876b7bb7ac8c2f362b52.ps1.md
├── 2-ways-in-1-get-uptime.ps1.md
├── 20498039475807687.ps1.md
├── 2QYHB-CKDXC-T6T6X-W686F.ps1.md
├── 3-way-file-compare.ps1.md
├── 966552541495.ps1.md
├── A-Compare-Object-Bug.ps1.md
├── A-Process-Block.ps1.md
├── A-simple-cached-RSS-reader-.ps1.md
├── ACE-psm1.ps1.md
├── AD-FSMO-Roles.ps1.md
├── AD-Forest-GPO-Auditing.ps1.md
├── AD-GroupMembers_v1.ps1.md
├── AD-GroupMembers_v2.ps1.md
├── AD-PromiscDetect.ps1.md
├── AD-Site-Info.ps1.md
├── AD-attributes.ps1.md
├── AD-user-Certificate-info.ps1.md
├── AD-user-support-tool.ps1.md
├── AD_bulk_new_OU.ps1.md
├── AES-CTR-mode-decryptor.ps1.md
├── AJAX-Scrape.ps1.md
├── AS-function.ps1.md
├── ASP-Security-Flaw-Detect.ps1.md
├── ASPX-Mailbox-2-of-6.ps1.md
├── ASPX-Mailbox-4-of-6.ps1.md
├── ASTSplatting.ps1.md
├── Access-Jira-REST.ps1.md
├── Activation-Context-API.ps1.md
├── ActiveDirectoryFunctions.ps1.md
├── Add-ADGroupPropertyPermi.ps1.md
├── Add-ADPhoto.ps1.md
├── Add-ByteFormat.ps1.md
├── Add-Counter.ps1.md
├── Add-CounterPaths-2-Mongo.ps1.md
├── Add-DGMembershipRule.ps1.md
├── Add-EventHandler.ps1.md
├── Add-EventLogs-to-Mongo.ps1.md
├── Add-ExcelAddins.ps1.md
├── Add-ExtendedFileProperti.ps1.md
├── Add-ForeachStatement.ps1.md
├── Add-FormatTableIndexPara.ps1.md
├── Add-FuncGuard.ps1.md
├── Add-Get-Help-Full.ps1.md
├── Add-GridRow.ps1.md
├── Add-Namespace.ps1.md
├── Add-NetworkPrinter.ps1.md
├── Add-ObjectCollector.ps1.md
├── Add-PInvoke.ps1.md
├── Add-PoShEndpointAccess.ps1.md
├── Add-PrinterDriver.ps1.md
├── Add-RelativePathCapture.ps1.md
├── Add-SQL-Account-to-Serve.ps1.md
├── Add-SSL-Cert-to-IIS.ps1.md
├── Add-SVNFile.ps1.md
├── Add-SharePointLibraryFil.ps1.md
├── Add-Slide.ps1.md
├── Add-SqlClientAlias.ps1.md
├── Add-SqlTable.ps1.md
├── Add-Target.ps1.md
├── Add-TnsAdminEntry.ps1.md
├── Add-To-Start-Of-File.ps1.md
├── Add-Type-extends.ps1.md
├── Add-User-to-database-rol.ps1.md
├── Add-Voice-to-Powershell.ps1.md
├── Add-WindowsAccountToSQLR.ps1.md
├── Add-new-smtp-address-from-.ps1.md
├── Add-new-smtp-set-prmary.ps1.md
├── Add-on-HelpBrowser-psm1.ps1.md
├── Add-on-InstallPortable-p.ps1.md
├── Add-on-PShellExec-psm1.ps1.md
├── Add-on-PublishOnline-las.ps1.md
├── Add-virtual-hd-type.ps1.md
├── AddTo-HostsFile.ps1.md
├── Added-Deleted-AD-Objects.ps1.md
├── Admin-Launcher.ps1.md
├── Advanced-Show-Object.ps1.md
├── Advanced1_2011.ps1.md
├── Aero-Glass-PowerShell.ps1.md
├── Alias-latest-msbuild.ps1.md
├── All-descriptions-on-the-web-.ps1.md
├── AlmightyShell-Compiler.ps1.md
├── Am-I-a-purist.ps1.md
├── Amazon-AWS-user-data.ps1.md
├── Amma-Chimes.ps1.md
├── Amp-Receiver-control.ps1.md
├── An-example-for-you.ps1.md
├── AnalizeScript.ps1.md
├── AnalyzeScript.ps1.md
├── Anmin-Launcher-v2.ps1.md
├── Antivirus-path.ps1.md
├── Apache-Log-Browser-Count.ps1.md
├── App-V-5-0-create-.ps1.md
├── App-V-publish-4-Citrix.ps1.md
├── Approve-MailAddress.ps1.md
├── Appscanner.ps1.md
├── AppxApps.ps1.md
├── Archive-ZIP-files.ps1.md
├── Array-Randomizer.ps1.md
├── Ascii-Memes.ps1.md
├── Ashwin.ps1.md
├── Asp-net-Using-httpConext.ps1.md
├── Assert.ps1.md
├── Async-Ping-Sweep.ps1.md
├── Async-Pipeline-WPF-GUI.ps1.md
├── Async-SQL-Backup.ps1.md
├── Async-Sockets.ps1.md
├── AsyncCallbacks-in-NET.ps1.md
├── Asynchronous-GUI.ps1.md
├── Atlassian-Jira-Interface.ps1.md
├── Audit-File-Share-Perms.ps1.md
├── Audit-NTFS-on-Shares.ps1.md
├── Audit-Script.ps1.md
├── Audit-iPhone-Palm-Users.ps1.md
├── Audit-iPhone-Users.ps1.md
├── Auto-ISE-Preferences.ps1.md
├── AutoArchive.ps1.md
├── AutoRefreshWebpage.ps1.md
├── Autoload-Module.ps1.md
├── Autoload-beta-6.ps1.md
├── Autoload-beta.ps1.md
├── Automatic-Windows-Update.ps1.md
├── Automount-new-PSDrives.ps1.md
├── BER-Encoding-Module.ps1.md
├── BPA-checks.ps1.md
├── Backup-Cisco-UCS-FI.ps1.md
├── Backup-DatabaseObject.ps1.md
├── Backup-EventLogs.ps1.md
├── Backup-Hyper-V-VMs.ps1.md
├── Backup-ModifiedGPOs.ps1.md
├── Backup-Rotation-7zip.ps1.md
├── Backup-all-ESXi.ps1.md
├── Backup-all.ps1.md
├── Backup-exchange-2007.ps1.md
├── Backup-full.ps1.md
├── Balance-Datastores.ps1.md
├── Base64-file-payloads.ps1.md
├── Bash-Aliases.ps1.md
├── Bash-file-full-path.ps1.md
├── Bash-out-shell.ps1.md
├── Basic-DNSBL-Check-for-IP.ps1.md
├── Begin-Block.ps1.md
├── BetterCredentials.ps1.md
├── Bier.ps1.md
├── BinaryClock.ps1.md
├── BinarySplit.ps1.md
├── Bing.ps1.md
├── Blow-up-ESXi.ps1.md
├── Boots-DataGrid-Binding.ps1.md
├── Boots-Hierarchical-Bind.ps1.md
├── Boots-amp-Background-Jobs.ps1.md
├── Bootstrap-psake-w-PsGet.ps1.md
├── BridgeBot.ps1.md
├── Brushes.ps1.md
├── BufferBox.ps1.md
├── Build-SQL-Server-conn-st.ps1.md
├── Build-TFSProjects.ps1.md
├── Bulk-Change-AD-Passwords.ps1.md
├── Bulk-Delprof.ps1.md
├── Bulk-Importing-Printers.ps1.md
├── Bulk-Storage-vMotion.ps1.md
├── Buying-groceries.ps1.md
├── Bytes.ps1.md
├── CD-psm1.ps1.md
├── CDOT-Check.ps1.md
├── CDRom-Open-Close.ps1.md
├── CI-Detection-Wifi-gt-LAN.ps1.md
├── CIM-SMI-S-Query-Library.ps1.md
├── CLR4-module.ps1.md
├── COE_IMAGE.ps1.md
├── COMMENT.ps1.md
├── CPU-model.ps1.md
├── CSV-Validator-Framework.ps1.md
├── CTP3-Watch-Folder.ps1.md
├── Call-CreateFolder_pff.ps1.md
├── Call-WSPBuilder.ps1.md
├── Can-someone-explain-to-me-.ps1.md
├── CapsLock-Notifier.ps1.md
├── Car-shopping.ps1.md
├── Catch-LongNames.ps1.md
├── CenturionPortal.ps1.md
├── CertMgmt-pack.ps1.md
├── Certificator-Part-1.ps1.md
├── Certificator-Part-2.ps1.md
├── Certificator.ps1.md
├── Change-Server-2012-type.ps1.md
├── Chassis-Type.ps1.md
├── Check-Backups.ps1.md
├── Check-Chromium-Build.ps1.md
├── Check-Exchange2010-queue.ps1.md
├── Check-HBA-status.ps1.md
├── Check-Honeypot-Project.ps1.md
├── Check-LotusHealth.ps1.md
├── Check-Modules-path.ps1.md
├── Check-NewGmail.ps1.md
├── Check-OpenSSL.ps1.md
├── Check-PowerShell-version.ps1.md
├── Check-Server-Health.ps1.md
├── Check-Service-on-Servers.ps1.md
├── Check-Service.ps1.md
├── Check-amp-reboot-Appassure.ps1.md
├── Check-e-mail-access-type.ps1.md
├── Check-for-Service-Outage.ps1.md
├── Check-latest-BIOS-Rev.ps1.md
├── Check-new-gmail.ps1.md
├── Cisco-Inventory.ps1.md
├── Citrix-Functions.ps1.md
├── Citrix-License-Info.ps1.md
├── Class-Day-5.ps1.md
├── Cleanup-Citrix-Profiles.ps1.md
├── Cleanup-TS-Profiles.ps1.md
├── Clear-SCCMCache.ps1.md
├── Clear-XCAttributes.ps1.md
├── Clipboard-psm1.ps1.md
├── Close-Control.ps1.md
├── Close-by-window-title.ps1.md
├── Cluster-Windows.ps1.md
├── CmdWget.ps1.md
├── Code-Correction.ps1.md
├── Code-Review.ps1.md
├── Code-to-auto-update-the-.ps1.md
├── ColorPattern.ps1.md
├── Coloring-text-in-RichTex.ps1.md
├── Colorize-Subversion-SVN.ps1.md
├── Colorize.ps1.md
├── ComObjects-Types.ps1.md
├── Combine-CSV-Function.ps1.md
├── Compare-2-foldertrees.ps1.md
├── Compare-AD.ps1.md
├── Compare-DatabaseColumns.ps1.md
├── Compare-DatabaseSchema.ps1.md
├── Compare-DellUpdates.ps1.md
├── Compare-FileHash.ps1.md
├── Compare-Folders.ps1.md
├── Compare-InstalledHotfix.ps1.md
├── Compare-PathAcl.ps1.md
├── Compare-Property.ps1.md
├── Compare-Reg-Keys.ps1.md
├── Compare-SQL-Tables-II.ps1.md
├── Compare-SQLResultSet.ps1.md
├── Compare-Table-amp-DataRow.ps1.md
├── Compare-TwitterNames.ps1.md
├── Compile-Help.ps1.md
├── Compress-Bitmap.ps1.md
├── Computer-Inventory.ps1.md
├── ComputerQueryTool.ps1.md
├── Configuration-Mgmt.ps1.md
├── Configure-Visio-Graphics.ps1.md
├── Confirm-FreeSpace-help.ps1.md
├── Confirm-FreeSpace.ps1.md
├── Connect-AccessDB.ps1.md
├── Connect-LabManager.ps1.md
├── Connect-ToIpsecVpn.ps1.md
├── Connect-VMHost.ps1.md
├── Connect-WebService.ps1.md
├── Console-Function-Run.ps1.md
├── ConsoleHelper-psm1.ps1.md
├── ConsoleToys-psm1.ps1.md
├── Content-Libraries.ps1.md
├── Convert-BounceToX500.ps1.md
├── Convert-CBZ2CBR.ps1.md
├── Convert-CSVs-to-XLSXs.ps1.md
├── Convert-File-Encoding.ps1.md
├── Convert-FspToUsername.ps1.md
├── Convert-MacAddress.ps1.md
├── Convert-PowerPack2Ps1.ps1.md
├── Convert-Raw-SID-to-SID.ps1.md
├── Convert-SchemaGUID.ps1.md
├── Convert-StringSID.ps1.md
├── Convert-TextObject.ps1.md
├── Convert-ToCHexString.ps1.md
├── Convert-ToMP3.ps1.md
├── ConvertExBPATo-CSV.ps1.md
├── ConvertFrom-CliXml.ps1.md
├── ConvertFrom-FahrenheitWi.ps1.md
├── ConvertFrom-Hashtable-2.ps1.md
├── ConvertFrom-Hashtable.ps1.md
├── ConvertFrom-Html.ps1.md
├── ConvertFrom-Property.ps1.md
├── ConvertFrom-RomanNumeral.ps1.md
├── ConvertFrom-SDDL.ps1.md
├── ConvertFrom-String-Buddy.ps1.md
├── ConvertHelpTo-Html.ps1.md
├── ConvertTo-ADThumbnail.ps1.md
├── ConvertTo-ASCII.ps1.md
├── ConvertTo-CliXml.ps1.md
├── ConvertTo-DN.ps1.md
├── ConvertTo-Function.ps1.md
├── ConvertTo-GoogleChartNum.ps1.md
├── ConvertTo-Hashtable.ps1.md
├── ConvertTo-Hex.ps1.md
├── ConvertTo-ISEAddOn.ps1.md
├── ConvertTo-Icon.ps1.md
├── ConvertTo-Module.ps1.md
├── ConvertTo-MultiArray.ps1.md
├── ConvertTo-PS1.ps1.md
├── ConvertTo-PseudoType.ps1.md
├── ConvertTo-RelativeTime.ps1.md
├── ConvertTo-RomanNumeral.ps1.md
├── ConvertTo-UnsecureString.ps1.md
├── ConvertToStringData.ps1.md
├── Copiar-Arquivos.ps1.md
├── Coping-Files.ps1.md
├── Copy-ADGroup.ps1.md
├── Copy-ColoredHTML.ps1.md
├── Copy-File-Safely.ps1.md
├── Copy-FilePlus.ps1.md
├── Copy-Files-Log-to-Excel.ps1.md
├── Copy-Function.ps1.md
├── Copy-GroupMembership.ps1.md
├── Copy-History.ps1.md
├── Copy-Item-extended.ps1.md
├── Copy-ItemGUI.ps1.md
├── Copy-MAGig.ps1.md
├── Copy-Paste-Clear.ps1.md
├── Copy-Shares.ps1.md
├── Copy-files-to-dated-directory.ps1.md
├── Copy-files.ps1.md
├── Copy-from-source-to-destination-.ps1.md
├── CorpTools-Manifest.ps1.md
├── CorpTools-Module.ps1.md
├── CorpTools-View.ps1.md
├── Correction.ps1.md
├── Count-CachedMode-ps1.ps1.md
├── Create-AD-Test-Lab.ps1.md
├── Create-Certificate.ps1.md
├── Create-Mdb.ps1.md
├── Create-Printers.ps1.md
├── Create-RTF-File.ps1.md
├── Create-RTF.ps1.md
├── Create-SCCMCollection.ps1.md
├── Create-SP2010-Farm-V03.ps1.md
├── Create-VApps-in-vSphere.ps1.md
├── Create-VMKernel-on-vDS.ps1.md
├── Create-XLS-file-from-Obj.ps1.md
├── Create-ZIP.ps1.md
├── Create-a-VIAccount.ps1.md
├── Create-datastore-by-LUN.ps1.md
├── Create-random-strings.ps1.md
├── CreateMasterLists.ps1.md
├── CreateSite_tmp.ps1.md
├── CreateVDS.ps1.md
├── CruiseControl-Net-build-script-template-.ps1.md
├── Custom-Accelerators-CTP3.ps1.md
├── Custom-Accelerators.ps1.md
├── Custom-Speech-Commands.ps1.md
├── DEMO-Trap-Ctrl-C.ps1.md
├── DHCP-Backup-by-Andre.ps1.md
├── DHCP-Backup.ps1.md
├── DHCP-Failover-Script.ps1.md
├── DLL-exported-functions.ps1.md
├── DN-to-Canonical.ps1.md
├── DNS-functions.ps1.md
├── DS-L-Order-brneanew-game.ps1.md
├── DT.ps1.md
├── Danish.ps1.md
├── Debug-Regex-match.ps1.md
├── Decode-File.ps1.md
├── Decrypt-Psi-Password.ps1.md
├── DefaultParameterValues.ps1.md
├── DekiWiki-Module.ps1.md
├── Del-TrailingBlank-ISE.ps1.md
├── Delete-AD-Users.ps1.md
├── Delete-Empty-Folders.ps1.md
├── Delete-Files-per-folder.ps1.md
├── Delete-LocalAccount.ps1.md
├── Delete-Old-Shadow-Copies.ps1.md
├── Delete-Ransomware-Files.ps1.md
├── Deleted-Objects.ps1.md
├── Dell-Open-Manage-Racadm.ps1.md
├── Dell-Order-Status.ps1.md
├── Dell-hardware-checker.ps1.md
├── Demo-Confirm.ps1.md
├── Demo-Pipepline.ps1.md
├── Demo-ShouldProcess.ps1.md
├── Demo-v3-Gui.ps1.md
├── Deploy-File-amp-Shortcut.ps1.md
├── Deploy-Folder.ps1.md
├── Deploy-VM-with-Static-IP.ps1.md
├── Deploying-VM-with-static.ps1.md
├── Desktop.ps1.md
├── Detect-32-or-64-bits-.ps1.md
├── Detect-SCCM-2007.ps1.md
├── Determine-capacity-of-RA.ps1.md
├── Dict-context.ps1.md
├── Dir-for-days.ps1.md
├── DirToday-Extended.ps1.md
├── DirectX-MP3Player.ps1.md
├── Disable-AD-Users.ps1.md
├── Disable-CopyPasta-1.ps1.md
├── Disable-Local-Users.ps1.md
├── Disable-SSL3-Enable-TLS.ps1.md
├── Disable-SSLValidation.ps1.md
├── Disable-hotadd-hotplug.ps1.md
├── Disconnect-VMHost.ps1.md
├── Disk-Check-amp-Email-amp-Log.ps1.md
├── Division-Puzzle-Solver.ps1.md
├── Documenting-Collections.ps1.md
├── DotSource-psm1.ps1.md
├── Down-with-SOPA.ps1.md
├── Download-DefragTools.ps1.md
├── Download-File-with.ps1.md
├── Download-FreeReflector-p.ps1.md
├── Download-from-Picasa.ps1.md
├── Draw-Circle.ps1.md
├── Draw-Nested-Groups.ps1.md
├── Draw-with-PowerShell.ps1.md
├── Draw.ps1.md
├── Drive-Space-Report.ps1.md
├── Drop-SQL-Users.ps1.md
├── DropDown-Window.ps1.md
├── DuckDNS-Update-Script.ps1.md
├── Dumping-COM.ps1.md
├── Dynamic-Parameters-Huh.ps1.md
├── EFT-Module.ps1.md
├── EFT-Powershell-module.ps1.md
├── EPO-Deployment.ps1.md
├── ESX-Lun-Latencies.ps1.md
├── ESX-host-NTP-Settings.ps1.md
├── ESXi-Config-Backup-Scrip.ps1.md
├── ESXi-scratch-location.ps1.md
├── ESXiMgmt-module-sample-3.ps1.md
├── ESXiMgmt-module-sample-5.ps1.md
├── ESXiMgmt-module.ps1.md
├── Easy-Migration-Tool.ps1.md
├── EchoTest-cmd.ps1.md
├── Edit-Code-3.ps1.md
├── Edit-File-in-Notepad.ps1.md
├── Edit-Function.ps1.md
├── Edit-RDP.ps1.md
├── Edit-Variable.ps1.md
├── Ellipsis.ps1.md
├── Email-Excel-File.ps1.md
├── Email-ExpiringADAccounts.ps1.md
├── Email-Forwarding-O365.ps1.md
├── Email-High-CPU-Processes.ps1.md
├── Email-attachments.ps1.md
├── EmailService.ps1.md
├── Empty-system-working-set.ps1.md
├── Empty-working-set.ps1.md
├── Enable-BitLocker.ps1.md
├── Enable-BreakOnError.ps1.md
├── Enable-Configure-SNMP.ps1.md
├── Enable-Disable-FusionLog.ps1.md
├── Enable-Disable-NIC-XP.ps1.md
├── Enable-HistoryPersistenc.ps1.md
├── Enable-MailboxJunkEmail.ps1.md
├── Enable-PS-Remoting.ps1.md
├── Enable-PrintHistory.ps1.md
├── Enable-RemoteCredSSP.ps1.md
├── Enable-RemotePsRemoting.ps1.md
├── Enter-Module.ps1.md
├── Environment.ps1.md
├── Error-handling-PowerCLI.ps1.md
├── Event-Log-SOX-audit.ps1.md
├── Evt-XPath-Creation.ps1.md
├── Ex2010_MBDB_Info-check-for-Check_MK.ps1.md
├── Example-use-of-PowerMapi.ps1.md
├── Excel-Auto-frontend.ps1.md
├── Excel-LoadFile.ps1.md
├── ExceptionHandling.ps1.md
├── Exch07-Quota-Report.ps1.md
├── Exch07-Snd-Rec-Report.ps1.md
├── Exchange-AutoReply-Admin.ps1.md
├── Exchange-Mail-Reports.ps1.md
├── Exchange-Mailbox-Report.ps1.md
├── Exchange-PST-Export.ps1.md
├── Exchange-PerfCounters.ps1.md
├── Exchange-Services.ps1.md
├── Execute-RunspaceJob.ps1.md
├── Execute-SQLCommand.ps1.md
├── Execute-in-PowerShell.ps1.md
├── ExecutePowerShell-cmd.ps1.md
├── Exif-query-script.ps1.md
├── Expand-Alias.ps1.md
├── Expand-PEInfo-fix-1.ps1.md
├── Expand-PEInfo.ps1.md
├── Expand-ZipFile.ps1.md
├── Experimental-IO.ps1.md
├── Export-ASP-Events-2-evtx.ps1.md
├── Export-CSV-Append.ps1.md
├── Export-CustomProperty.ps1.md
├── Export-Exchange-mailboar.ps1.md
├── Export-Exchange-mailbox.ps1.md
├── Export-PSCredential.ps1.md
├── Export-SPListToSQL.ps1.md
├── Export-ScreenShot.ps1.md
├── Export-WLAN.ps1.md
├── Export-WLANSettings.ps1.md
├── Export-top-n-SQLPlans.ps1.md
├── ExportSQLDeadlockGraphs.ps1.md
├── Exporting-SQLData-to-CSV.ps1.md
├── Extract-Mailstore.ps1.md
├── Extract-PluginMeta.ps1.md
├── FAQ.ps1.md
├── FC-WWN-per-vendor.ps1.md
├── FS_FindFiles.ps1.md
├── FTP-ListDirectory.ps1.md
├── FTP-Upload-Dir-Tree.ps1.md
├── FTP-download.ps1.md
├── FTP-functions.ps1.md
├── FTP-module.ps1.md
├── FTP-upload.ps1.md
├── Factorio-blog-alert.ps1.md
├── Farm-Backup.ps1.md
├── FastNFS-PowerCLI.ps1.md
├── Feeds-Module.ps1.md
├── Fetch-IMDB-info.ps1.md
├── Fifteen.ps1.md
├── File-encoding-no-BOM.ps1.md
├── FileCop.ps1.md
├── Final-AwesomeTools-mod.ps1.md
├── Final-Elsa-module.ps1.md
├── Final-Format.ps1.md
├── Final-Manifest.ps1.md
├── Final-Module.ps1.md
├── Find-AmazonBook.ps1.md
├── Find-Command.ps1.md
├── Find-Database-on-Estate.ps1.md
├── Find-DuplicateSMTP.ps1.md
├── Find-Editor.ps1.md
├── Find-FolderUniqueID.ps1.md
├── Find-GeoCode.ps1.md
├── Find-Installed-NET-ver.ps1.md
├── Find-Local-Group-Members.ps1.md
├── Find-Replace.ps1.md
├── Find-SQLServers.ps1.md
├── Find-String.ps1.md
├── Find-and-Replace-Data.ps1.md
├── Find-creation-date-and-creator-.ps1.md
├── Find-old-snapshots.ps1.md
├── Find-sharable-storage.ps1.md
├── Find-who-created-a-VM.ps1.md
├── FindNewVirtualMachines.ps1.md
├── Findup.ps1.md
├── Firefox-Bookmarks-By-Key.ps1.md
├── First-of-all-this-is-.ps1.md
├── Fix-VMPortGroups.ps1.md
├── Flatten-hashtable.ps1.md
├── Folder-inheritance.ps1.md
├── Force-64-bit-for-script.ps1.md
├── Force-WSUS-Check.ps1.md
├── Force-current-user-logof.ps1.md
├── Forest-FSMO.ps1.md
├── Format-HPCCOutput.ps1.md
├── Format-HPEVAXMLVdisk.ps1.md
├── Format-Hex.ps1.md
├── Format-PoshTable.ps1.md
├── Format-String.ps1.md
├── Format-TablePlus.ps1.md
├── FormatDate.ps1.md
├── FormsLib.ps1.md
├── Fresh-cc-cvv-fullz-dump.ps1.md
├── Function-Run-Script.ps1.md
├── GACView-psm1.ps1.md
├── GET-Remoteapps.ps1.md
├── GPO-Repair.ps1.md
├── GPO-replication-status.ps1.md
├── GPPreferencesPrinters.ps1.md
├── GPRS-Online-log.ps1.md
├── GUI-GAC-View.ps1.md
├── GeSHi-PowerShell-Syntax.ps1.md
├── Generate-New-Password.ps1.md
├── Generate-Random-Data.ps1.md
├── Generate-an-extmap-xml.ps1.md
├── Generates-an-CSR-certificate-request-.ps1.md
├── Get-2011SGScriptingScore.ps1.md
├── Get-ADGroupLastUsed.ps1.md
├── Get-ADGroupMember-R.ps1.md
├── Get-ADGroupMembers.ps1.md
├── Get-ADGroupModifications.ps1.md
├── Get-ADMapObject.ps1.md
├── Get-ADNestedGroupMembers.ps1.md
├── Get-ADNonExpPass.ps1.md
├── Get-ADSite-byIP.ps1.md
├── Get-ADThumbnail.ps1.md
├── Get-ADTokenSize.ps1.md
├── Get-APOD.ps1.md
├── Get-AclMisconfiguration.ps1.md
├── Get-ActivesyncUsers.ps1.md
├── Get-AliasSuggestion.ps1.md
├── Get-Answer.ps1.md
├── Get-App.ps1.md
├── Get-Application.ps1.md
├── Get-Arguments.ps1.md
├── Get-AssetInfo.ps1.md
├── Get-BogonList.ps1.md
├── Get-BoxedComment.ps1.md
├── Get-CACertificateDatabas.ps1.md
├── Get-CInfo.ps1.md
├── Get-CPUID-with-asm.ps1.md
├── Get-Calendar.ps1.md
├── Get-CalendarWeek.ps1.md
├── Get-Cert.ps1.md
├── Get-CertificationAuthori.ps1.md
├── Get-CharInfo.ps1.md
├── Get-Characteristics.ps1.md
├── Get-ChildItemColor.ps1.md
├── Get-ChildItemProxy.ps1.md
├── Get-ChildItemRecurse.ps1.md
├── Get-ChilditemsRecursive.ps1.md
├── Get-ClientVersionConnectLogs.ps1.md
├── Get-Clipboard.ps1.md
├── Get-ClipboardText.ps1.md
├── Get-CommandDefinition.ps1.md
├── Get-Comment.ps1.md
├── Get-CompPartitionTable.ps1.md
├── Get-Computer.ps1.md
├── Get-ComputerAssetInforma.ps1.md
├── Get-ComputerReport.ps1.md
├── Get-ComputerSession.ps1.md
├── Get-Constructor.ps1.md
├── Get-CoolingMode.ps1.md
├── Get-Cpl.ps1.md
├── Get-CpuCache.ps1.md
├── Get-CpuId.ps1.md
├── Get-CrawlHealth-MOSS.ps1.md
├── Get-Credential.ps1.md
├── Get-CryptoBytes.ps1.md
├── Get-CrystalReportTable.ps1.md
├── Get-DCsFromDNS.ps1.md
├── Get-DGMembershipRule.ps1.md
├── Get-DLRestriction.ps1.md
├── Get-DNSZoneRecords.ps1.md
├── Get-DTWFileEncoding.ps1.md
├── Get-DatastoreMostFree.ps1.md
├── Get-Delegate.ps1.md
├── Get-DellWarranty-by-API.ps1.md
├── Get-DellWarranty.ps1.md
├── Get-Dependency.ps1.md
├── Get-Desktop.ps1.md
├── Get-DetailedSystemInform.ps1.md
├── Get-DeviceChassis.ps1.md
├── Get-DevicePath.ps1.md
├── Get-DhcpClient.ps1.md
├── Get-DirSize.ps1.md
├── Get-Dirty-Extended.ps1.md
├── Get-DiskSizeInfo.ps1.md
├── Get-DiskTemperature.ps1.md
├── Get-DiskUsage.ps1.md
├── Get-DistanceOnEarth.ps1.md
├── Get-DomainPasswordPolicy.ps1.md
├── Get-DominosOrderStatus.ps1.md
├── Get-DotNetFrameworkVersion-Script-to-get-.ps1.md
├── Get-DrsGroup.ps1.md
├── Get-Duplicates.ps1.md
├── Get-EC2RunningInstancesConsoleOutput.ps1.md
├── Get-EasterEastern.ps1.md
├── Get-EasterWestern.ps1.md
├── Get-EmptyGroup.ps1.md
├── Get-Entropy.ps1.md
├── Get-EwsEmail.ps1.md
├── Get-Exception.ps1.md
├── Get-Exchange-DB-Stats.ps1.md
├── Get-Exchange-Mail.ps1.md
├── Get-ExchangeDBSizes.ps1.md
├── Get-ExchangeMBStore.ps1.md
├── Get-ExcludedCsprojJavasc.ps1.md
├── Get-Excuse.ps1.md
├── Get-FSMORoleOwner.ps1.md
├── Get-FactualData.ps1.md
├── Get-FailingDrive.ps1.md
├── Get-FeedInfo.ps1.md
├── Get-Fibonacci.ps1.md
├── Get-Field.ps1.md
├── Get-FileAllocation.ps1.md
├── Get-FileEncoding-UTF8BOM.ps1.md
├── Get-FileEncoding.ps1.md
├── Get-FileHash.ps1.md
├── Get-FileTail.ps1.md
├── Get-FirewallStatus.ps1.md
├── Get-FirewallStatus2.ps1.md
├── Get-FolderSize.ps1.md
├── Get-FormatData.ps1.md
├── Get-FreeRAM.ps1.md
├── Get-FtpList.ps1.md
├── Get-Function-Parameters.ps1.md
├── Get-GPOLinkedOrganizationalUnits.ps1.md
├── Get-GPOSettings.ps1.md
├── Get-GPOUNCPaths.ps1.md
├── Get-Gender.ps1.md
├── Get-GitInfoForDirectory.ps1.md
├── Get-GoogleSpreadsheets.ps1.md
├── Get-GroupMembership.ps1.md
├── Get-GroupStructure-GUI.ps1.md
├── Get-GroupStructure.ps1.md
├── Get-GrowthRate.ps1.md
├── Get-HPAgentVersion.ps1.md
├── Get-HPSwitchConfig.ps1.md
├── Get-HarddriveModel.ps1.md
├── Get-HardlinkInfo.ps1.md
├── Get-Head.ps1.md
├── Get-Help.ps1.md
├── Get-HelpInfo-PS-V3.ps1.md
├── Get-HexDump.ps1.md
├── Get-HostEntry.ps1.md
├── Get-Hostname.ps1.md
├── Get-HostsFile.ps1.md
├── Get-HotFix.ps1.md
├── Get-HtmlHelp.ps1.md
├── Get-HttpResponseUri.ps1.md
├── Get-IISLogLocation.ps1.md
├── Get-IPFromAD.ps1.md
├── Get-Ignite2015Video.ps1.md
├── Get-ImageMetaData.ps1.md
├── Get-Installed.ps1.md
├── Get-InstalledProgram.ps1.md
├── Get-InstalledProgram_v3.ps1.md
├── Get-InstalledSoftware.ps1.md
├── Get-InvocationInfo.ps1.md
├── Get-JackPot.ps1.md
├── Get-JpegData.ps1.md
├── Get-Labels.ps1.md
├── Get-Large-Pics.ps1.md
├── Get-LastBootUpTime.ps1.md
├── Get-LastDayOfMonth.ps1.md
├── Get-LastLoggedOnUser.ps1.md
├── Get-LastModDate.ps1.md
├── Get-LeaderBoard.ps1.md
├── Get-Link.ps1.md
├── Get-LoadedDrivers.ps1.md
├── Get-Local-Security-Groups-and-.ps1.md
├── Get-Local-User-stats.ps1.md
├── Get-LocalGroupMember.ps1.md
├── Get-LocalGroupMembers.ps1.md
├── Get-LocalGroupMembership.ps1.md
├── Get-LocalGroups.ps1.md
├── Get-LogonEvents.ps1.md
├── Get-LogonScriptUNCPaths.ps1.md
├── Get-LogonSessions.ps1.md
├── Get-Lotterynumbers.ps1.md
├── Get-MACFromIP.ps1.md
├── Get-MOSS-User-Profile.ps1.md
├── Get-MSDNInfo.ps1.md
├── Get-MWSOrder.ps1.md
├── Get-MX.ps1.md
├── Get-MacAddress.ps1.md
├── Get-MacAddressOui.ps1.md
├── Get-MachineStartupShutdo.ps1.md
├── Get-MailAttachment.ps1.md
├── Get-MailboxImportRequest.ps1.md
├── Get-MailboxesOverSizeLim.ps1.md
├── Get-McAfeeInfo.ps1.md
├── Get-MemberBody-v2.ps1.md
├── Get-MemberBody.ps1.md
├── Get-MemoryChart.ps1.md
├── Get-MimeType.ps1.md
├── Get-Monitor-Size.ps1.md
├── Get-MonthAccountCreated.ps1.md
├── Get-MountPointData.ps1.md
├── Get-MyDomain.ps1.md
├── Get-MyPublicIPAddress.ps1.md
├── Get-NICSettings.ps1.md
├── Get-NTFSPermissions.ps1.md
├── Get-NTStatusException.ps1.md
├── Get-NaCifs.ps1.md
├── Get-NaNfsExport.ps1.md
├── Get-NaVolumeLatency.ps1.md
├── Get-NestedGroups-v2.ps1.md
├── Get-NestedGroups.ps1.md
├── Get-NetView.ps1.md
├── Get-Netstat-1-0.ps1.md
├── Get-Netstat-1-1.ps1.md
├── Get-Netstat-1-2.ps1.md
├── Get-Netstat-1-3.ps1.md
├── Get-Netstat.ps1.md
├── Get-Network-Utilization.ps1.md
├── Get-NetworkStatistics.ps1.md
├── Get-NewPassword.ps1.md
├── Get-NextPrime.ps1.md
├── Get-NistNtpServer.ps1.md
├── Get-NtVersionNumbers.ps1.md
├── Get-O365.ps1.md
├── Get-OLEDBData.ps1.md
├── Get-OSinfoFromSCCM.ps1.md
├── Get-OUComputerNames.ps1.md
├── Get-ObjectIdentifier.ps1.md
├── Get-ObservedIPRange.ps1.md
├── Get-OnlineHelp.ps1.md
├── Get-OpenLDAP.ps1.md
├── Get-OracleData.ps1.md
├── Get-OwnerReport.ps1.md
├── Get-PEManifest.ps1.md
├── Get-PSExecutionPolicy.ps1.md
├── Get-PSVersion.ps1.md
├── Get-PackageTrace.ps1.md
├── Get-Packet.ps1.md
├── Get-PageUrls.ps1.md
├── Get-Parameter-function.ps1.md
├── Get-Parameter.ps1.md
├── Get-ParameterAlias.ps1.md
├── Get-Password.ps1.md
├── Get-Path.ps1.md
├── Get-Pecoff.ps1.md
├── Get-PendingUpdates.ps1.md
├── Get-PerformanceCounter.ps1.md
├── Get-PerformanceHistory-2.ps1.md
├── Get-PipeLineObject.ps1.md
├── Get-PrinterDetails.ps1.md
├── Get-PrinterInfo.ps1.md
├── Get-PrivateKeyPath.ps1.md
├── Get-PrivateProfileString.ps1.md
├── Get-ProcedureCallTree.ps1.md
├── Get-Process-eq-PSList.ps1.md
├── Get-ProcessCount.ps1.md
├── Get-ProcessOwner.ps1.md
├── Get-ProcessProfile.ps1.md
├── Get-ProcessTree.ps1.md
├── Get-Processor-Inventory.ps1.md
├── Get-ProcessorGraph.ps1.md
├── Get-ProductKey.ps1.md
├── Get-ProxyAddress.ps1.md
├── Get-QADGroupNesting.ps1.md
├── Get-QuizzleFact.ps1.md
├── Get-RDPSetting.ps1.md
├── Get-RandomNames.ps1.md
├── Get-RandomPassword.ps1.md
├── Get-RebootHistory.ps1.md
├── Get-RecurseMember.ps1.md
├── Get-Regex-ps1-Updated.ps1.md
├── Get-RelativePath.ps1.md
├── Get-RemoteRegistry.ps1.md
├── Get-RemoteRegistryChildI.ps1.md
├── Get-RemoteRegistryInformation.ps1.md
├── Get-RemoteRegistryKeyPro.ps1.md
├── Get-SCCMUserComputer.ps1.md
├── Get-SNMPHost.ps1.md
├── Get-SPListItem.ps1.md
├── Get-SQLDatabaseFreespace.ps1.md
├── Get-SQLFileSize.ps1.md
├── Get-SQLSaturdaySessions.ps1.md
├── Get-SRVPriority.ps1.md
├── Get-Sandisks.ps1.md
├── Get-Scope.ps1.md
├── Get-ScriptCoverage.ps1.md
├── Get-ScriptDC.ps1.md
├── Get-ScriptDirectory.ps1.md
├── Get-ScriptPerformancePro.ps1.md
├── Get-Sequence.ps1.md
├── Get-SerialNumber.ps1.md
├── Get-ServerUptime.ps1.md
├── Get-ServiceAccounts.ps1.md
├── Get-Sessions.ps1.md
├── Get-Set-Signature-CTP2.ps1.md
├── Get-Set-Signature-CTP3.ps1.md
├── Get-Set-Signature.ps1.md
├── Get-Set-Write-Filters.ps1.md
├── Get-ShareInfo.ps1.md
├── Get-SharePointListItem.ps1.md
├── Get-ShortURL.ps1.md
├── Get-ShortenedURL.ps1.md
├── Get-Snapinfo.ps1.md
├── Get-Software-Function.ps1.md
├── Get-SophosScanTime.ps1.md
├── Get-SpecialPath.ps1.md
├── Get-SqlSpn.ps1.md
├── Get-SqlWmi.ps1.md
├── Get-StaticMethodDefin.ps1.md
├── Get-Stock-Quotes.ps1.md
├── Get-StrictMode-psm1.ps1.md
├── Get-StringRange.ps1.md
├── Get-StructFromMemory.ps1.md
├── Get-Sysinternals.ps1.md
├── Get-SystemInstallDate.ps1.md
├── Get-SystemUptime.ps1.md
├── Get-TV-Show-Airdates.ps1.md
├── Get-Tail.ps1.md
├── Get-Temperature.ps1.md
├── Get-TheVillageChurchPod.ps1.md
├── Get-Time-Between-Dates.ps1.md
├── Get-TinyUrl.ps1.md
├── Get-Tomorrow.ps1.md
├── Get-TopProcess.ps1.md
├── Get-TranscriptFilePath.ps1.md
├── Get-Tree.ps1.md
├── Get-Twitter-RSS-Feed.ps1.md
├── Get-TwitterReply.ps1.md
├── Get-UIChildItem.ps1.md
├── Get-UIInput.ps1.md
├── Get-UNCPath.ps1.md
├── Get-UcsServerVlan.ps1.md
├── Get-UnityLicense.ps1.md
├── Get-Uptime.ps1.md
├── Get-User-for-Svc-Tasks.ps1.md
├── Get-User.ps1.md
├── Get-UserLogonLogoffScrip.ps1.md
├── Get-UserProfileList.ps1.md
├── Get-UserWithManyGroups.ps1.md
├── Get-VMCreationReport.ps1.md
├── Get-VMDiskUsagePerDS.ps1.md
├── Get-VMHostNetworks.ps1.md
├── Get-VMHostSerialNumber.ps1.md
├── Get-VMHostVersions.ps1.md
├── Get-VMSnapshotInformatio.ps1.md
├── Get-VMStorageAdapters.ps1.md
├── Get-VMware-Guest-Invento.ps1.md
├── Get-VeeamRepositoryIP.ps1.md
├── Get-Virtual-ESXi-IP-Addr.ps1.md
├── Get-WMIEvent.ps1.md
├── Get-WMIVersions.ps1.md
├── Get-WSManCredSSPConfigur.ps1.md
├── Get-WarningsAndErrors.ps1.md
├── Get-Weather.ps1.md
├── Get-WebConfigSqlConnectionString.ps1.md
├── Get-WebFile.ps1.md
├── Get-WebPage.ps1.md
├── Get-WebSite.ps1.md
├── Get-WebVideoFile.ps1.md
├── Get-WebsiteCertificate.ps1.md
├── Get-WhoisAbuse.ps1.md
├── Get-WifiNetwork.ps1.md
├── Get-WifiProfiles.ps1.md
├── Get-WindowsExperience.ps1.md
├── Get-WindowsProduct.ps1.md
├── Get-WindowsProductGUI.ps1.md
├── Get-WmiClassKeyProperty.ps1.md
├── Get-WmiNamespace.ps1.md
├── Get-WootDeal.ps1.md
├── Get-WordOutline.ps1.md
├── Get-ZipContent.ps1.md
├── Get-local-groups-members.ps1.md
├── Get-logged-on-Users.ps1.md
├── Get-mDatastoreList.ps1.md
├── Get-of-Web-Connections.ps1.md
├── Get-pages-printed.ps1.md
├── Get-systemstatus.ps1.md
├── Get-weather-forecasts.ps1.md
├── GetO365UsersWithAdmRoles.ps1.md
├── GetSet-Users.ps1.md
├── Global-Zip-functions.ps1.md
├── Go-To-Location.ps1.md
├── Google-Chromium-Download.ps1.md
├── Grant-RegistryAccessFull.ps1.md
├── HELP.ps1.md
├── HEX-string-to-SID-string.ps1.md
├── HP-PC-DeBloat.ps1.md
├── HP_Plink_ISO.ps1.md
├── HTML-Hardware-Reports-wi.ps1.md
├── HTML-Parse-Demo.ps1.md
├── HTML-Parse.ps1.md
├── HTML-Signature-Function.ps1.md
├── Hack-ESX-MOTD.ps1.md
├── Hack-ESXi.ps1.md
├── Hack-your-ESXi-welcome-screen.ps1.md
├── Hadoop-Dev.ps1.md
├── Hadoop-HDFS-client.ps1.md
├── Handles.ps1.md
├── Hardware-Inventory.ps1.md
├── Harley.ps1.md
├── Hash-Checker-On-One-Line.ps1.md
├── Hash-Checker.ps1.md
├── Hash-efficiency-example.ps1.md
├── Help-Differ-10000.ps1.md
├── HelpModules.ps1.md
├── HenryCeliafa-nokiamail-c.ps1.md
├── Here-is-full-description-provided-.ps1.md
├── HexDump-psm1.ps1.md
├── Highlight-Syntax.ps1.md
├── HighlightWord.ps1.md
├── Home-Automation-Module.ps1.md
├── Home-Directory-Perms.ps1.md
├── Hostprofile-Update-GUI.ps1.md
├── How-To-Extract-MS-Cluster-.ps1.md
├── HttpRest.ps1.md
├── HuddledTricks.ps1.md
├── I-WILL-CONTROL-YOUR-LIFE-.ps1.md
├── I-want-to-get-this-.ps1.md
├── IADsDNWithBinary-Cmdlet.ps1.md
├── IE-Proxy-Toggle-Silent.ps1.md
├── IE11-Install.ps1.md
├── IIS-FTP-Site-Creation.ps1.md
├── INICIAR-RDP.ps1.md
├── IP-Scan-Local-User-admin.ps1.md
├── IP.ps1.md
├── IPv4-Helpers.ps1.md
├── ISE-Comments.ps1.md
├── ISE-FileName.ps1.md
├── ISE-Lines.ps1.md
├── ISE-Module-Development.ps1.md
├── ISE-NativeConsole-Hooks.ps1.md
├── ISE-Snippets.ps1.md
├── ISEFun-psm1.ps1.md
├── If-you-have-a-medium-.ps1.md
├── ImageViewer.ps1.md
├── ImaginaryFriendFeed.ps1.md
├── Impersonation.ps1.md
├── Impersonationa.ps1.md
├── Import-ADUser.ps1.md
├── Import-BufferBox.ps1.md
├── Import-CSV.ps1.md
├── Import-Certificate.ps1.md
├── Import-CmdEnvironment.ps1.md
├── Import-Delimited-2.ps1.md
├── Import-Delimited.ps1.md
├── Import-ExcelToSQL.ps1.md
├── Import-GalPhoto.ps1.md
├── Import-GmailFilterXml.ps1.md
├── Import-Group-Policies.ps1.md
├── Import-Iis-Log.ps1.md
├── Import-Instapaper.ps1.md
├── Import-Methods.ps1.md
├── Import-NmapXML.ps1.md
├── Import-NugetLibrary.ps1.md
├── Import-PfxCertificate.ps1.md
├── Import-UniqueModule.ps1.md
├── Import-VCBImage.ps1.md
├── Infinite-Staircase.ps1.md
├── Infoblox-Module.ps1.md
├── Informacion-de-usuarios.ps1.md
├── IniFile-Functions.ps1.md
├── InkScape-utilities.ps1.md
├── Inovke-command-exclusive.ps1.md
├── Inst-of-PC-modul-broken.ps1.md
├── Install-Bginfo.ps1.md
├── Install-Firefox-add-on.ps1.md
├── Install-ISPackage.ps1.md
├── Install-Module.ps1.md
├── Install-Patches.ps1.md
├── Install-Solarized.ps1.md
├── Install-TempFont.ps1.md
├── Instances.ps1.md
├── Inventory.ps1.md
├── Invert-MouseWheel.ps1.md
├── Invoke-ADMTUserMigration.ps1.md
├── Invoke-AddTypeTypeDefini.ps1.md
├── Invoke-AdvancedFunction.ps1.md
├── Invoke-AppAsAdmin.ps1.md
├── Invoke-BackgroundTimer.ps1.md
├── Invoke-BinaryProcess.ps1.md
├── Invoke-BlueScreen.ps1.md
├── Invoke-CmdScript.ps1.md
├── Invoke-Command-on-subnet.ps1.md
├── Invoke-ComplexDebuggerSc.ps1.md
├── Invoke-ComplexScript.ps1.md
├── Invoke-ElevatedCommand-p.ps1.md
├── Invoke-ElevatedCommand.ps1.md
├── Invoke-ExecuteTSQL.ps1.md
├── Invoke-FolderCompression.ps1.md
├── Invoke-Generic.ps1.md
├── Invoke-ISPackage.ps1.md
├── Invoke-InjectLibrary.ps1.md
├── Invoke-Inline.ps1.md
├── Invoke-JQuery.ps1.md
├── Invoke-LocalizedScript-p.ps1.md
├── Invoke-LongRunningOperat.ps1.md
├── Invoke-LostOperator.ps1.md
├── Invoke-Member.ps1.md
├── Invoke-MoveRequest.ps1.md
├── Invoke-NamedParameter.ps1.md
├── Invoke-Parallel.ps1.md
├── Invoke-RemoteCommand.ps1.md
├── Invoke-RemoteExpression.ps1.md
├── Invoke-ResetPassword.ps1.md
├── Invoke-RestMethod-example.ps1.md
├── Invoke-RickRoll.ps1.md
├── Invoke-SQL.ps1.md
├── Invoke-SSH-Wrapper.ps1.md
├── Invoke-ScriptBlock.ps1.md
├── Invoke-ScriptBlockClosur.ps1.md
├── Invoke-ScriptThatRequire.ps1.md
├── Invoke-SqlCmd2.ps1.md
├── Invoke-SqlCmdExe.ps1.md
├── Invoke-SqlCommand.ps1.md
├── Invoke-Sqlcmd2-Cannot-process-argument-.ps1.md
├── Invoke-Sqlcmd4.ps1.md
├── Invoke-Standby.ps1.md
├── Invoke-Switch.ps1.md
├── Invoke-TsqlScript.ps1.md
├── Invoke-V2Script.ps1.md
├── Invoke-WMSettingsChange.ps1.md
├── Invoke-Web.ps1.md
├── Invoke-WindowsApi.ps1.md
├── Invoke-WindowsUpdate.ps1.md
├── Invoke-async.ps1.md
├── Invoke-sqlite.ps1.md
├── Is-Admin.ps1.md
├── Is-SameSubnet.ps1.md
├── Is-username-admin.ps1.md
├── IsoDates-psm1.ps1.md
├── JIRA-REST-Functions.ps1.md
├── JSON.ps1.md
├── JScript-Random-File.ps1.md
├── JScript-read-PE-headers.ps1.md
├── Join-Collections.ps1.md
├── Join-Objects.ps1.md
├── Join-String.ps1.md
├── Join-TextFile.ps1.md
├── Keylogger.ps1.md
├── Kill-Process.ps1.md
├── Killing-db-connections.ps1.md
├── L.ps1.md
├── LDAPLogging.ps1.md
├── LIVE.ps1.md
├── Language.ps1.md
├── Launch-Metro-App-w-file.ps1.md
├── Lenovo-PC-DeBloat.ps1.md
├── LetterDiamondOneLiner-v4.ps1.md
├── LetterDiamondOneliner-v2.ps1.md
├── LetterDiamondOneliner-v3.ps1.md
├── LibraryChart.ps1.md
├── LibraryDirectory.ps1.md
├── LibraryInputComparison-p.ps1.md
├── LibraryInvocation.ps1.md
├── LibraryLinkedServer.ps1.md
├── LibraryMSCS.ps1.md
├── LibraryPrompt.ps1.md
├── LibraryProperties.ps1.md
├── LibrarySqlBackup.ps1.md
├── LibrarySqlData.ps1.md
├── List-AD-Attributes.ps1.md
├── List-AD-Computers-CSV.ps1.md
├── List-AD-Users-CSV.ps1.md
├── List-AddRemovePrograms.ps1.md
├── List-All-Local-Admins.ps1.md
├── List-DHCP-Clients.ps1.md
├── List-Object-Discoveries.ps1.md
├── List-Windows-File-Shares.ps1.md
├── ListCmdletParameters.ps1.md
├── Live-Edu-password-reset.ps1.md
├── Llist-context.ps1.md
├── LoadModuleConfig.ps1.md
├── Local-Software-Inventory.ps1.md
├── LocalAdminGUI.ps1.md
├── LocalStorage-module.ps1.md
├── Lock-WorkStation.ps1.md
├── Lock-close-button.ps1.md
├── Locked-accounts-alerter.ps1.md
├── Log-4-SP-easy-restore.ps1.md
├── Log-Lost-Pings.ps1.md
├── Log-Off-Local-Users.ps1.md
├── Log4Net-xslt.ps1.md
├── Logger-psm1.ps1.md
├── Logging-AD-logins.ps1.md
├── Logoff-all-disconnected-local-users-.ps1.md
├── Logoff-all-users.ps1.md
├── Logoff.ps1.md
├── LookUp-WirelessLocation.ps1.md
├── Looks-for-parent-process.ps1.md
├── Lync-Bot.ps1.md
├── MIFParser.ps1.md
├── MUICacheView.ps1.md
├── MachineKey-psm1.ps1.md
├── MacroScopeParser.ps1.md
├── Magister-SOAP-Webrequest.ps1.md
├── Mail-Sig-Gen-XML.ps1.md
├── Mail-Signature-Service.ps1.md
├── MailChimp-GetDistributio.ps1.md
├── MailChimp.ps1.md
├── Mailbox-Move-monitor.ps1.md
├── MailboxFolderPermissions.ps1.md
├── Make-a-phone-call.ps1.md
├── Manage-ASP-NET-Providers.ps1.md
├── Manage-Service-Certs.ps1.md
├── Mandelbrot-Set.ps1.md
├── Manual-DNS-Scavenging.ps1.md
├── Map-a-Network-Drive.ps1.md
├── Matrix42.ps1.md
├── McAfeeAPI_01Connect.ps1.md
├── Measure-Command.ps1.md
├── Measure-CommandPerforman.ps1.md
├── Measure-ScriptCode.ps1.md
├── Measure-Total.ps1.md
├── MediaWiki-API.ps1.md
├── Memory-helper-functions.ps1.md
├── MetroApps-Module.ps1.md
├── Migrate-ADMTUser.ps1.md
├── Migrate-UserFolder.ps1.md
├── Migrate-UserPrinters.ps1.md
├── Migrate-UsersSettings.ps1.md
├── Minor-updated-version.ps1.md
├── Modal-File-Dialogs.ps1.md
├── Modified-WOL-impl.ps1.md
├── Modify-Excel.ps1.md
├── Monitor-ESX-with-WS-MAN.ps1.md
├── Monitor-FileSize.ps1.md
├── Monitor-Flashview.ps1.md
├── Monitor-folders.ps1.md
├── More-PSDrives.ps1.md
├── Movable-button.ps1.md
├── Move-FileSafely.ps1.md
├── Move-ISETAB.ps1.md
├── Move-LockedFile.ps1.md
├── Move-Mailbox-2010.ps1.md
├── Move-Template.ps1.md
├── Move-VMThin-SVMotion.ps1.md
├── Multiple-strings-params.ps1.md
├── My-Profile.ps1.md
├── NET-WMP-Install.ps1.md
├── NFSMountUsingReference.ps1.md
├── NIC-Performance.ps1.md
├── NPS-Server-Synchronize.ps1.md
├── NTFS-ACLs-Folder-Tree.ps1.md
├── NTFS-Streams.ps1.md
├── NetBackup-Backup-Report.ps1.md
├── NetSnmp-psm1.ps1.md
├── Netapp-SDK.ps1.md
├── Networker-Delete-ssids.ps1.md
├── New-ACE-Function.ps1.md
├── New-ADSubnet.ps1.md
├── New-Activity.ps1.md
├── New-AdUserAccount.ps1.md
├── New-BootsGadget.ps1.md
├── New-BulkMailboxMoveReq.ps1.md
├── New-Choice.ps1.md
├── New-CodeSigningCert.ps1.md
├── New-CodeSigningCertifica.ps1.md
├── New-CommandWrapper.ps1.md
├── New-ComplexPassword.ps1.md
├── New-CustomColumn.ps1.md
├── New-DFSRHealthReport.ps1.md
├── New-DesktopIni.ps1.md
├── New-DfsrConnection.ps1.md
├── New-DynamicVariable.ps1.md
├── New-Eicar.ps1.md
├── New-ElevatedTask.ps1.md
├── New-ErrorRecord.ps1.md
├── New-Event.ps1.md
├── New-Exch2010NlbCluster.ps1.md
├── New-FileShare.ps1.md
├── New-FilesystemHardLink-p.ps1.md
├── New-FullDataSet.ps1.md
├── New-GenericObject.ps1.md
├── New-HyperVVM.ps1.md
├── New-ISEMenu.ps1.md
├── New-ISEScript.ps1.md
├── New-IseFile.ps1.md
├── New-LinkedClone.ps1.md
├── New-MAML.ps1.md
├── New-MailBoxViaUI.ps1.md
├── New-Module.ps1.md
├── New-NamedPipe.ps1.md
├── New-ODataServiceProxy.ps1.md
├── New-Object.ps1.md
├── New-ObjectRecursive.ps1.md
├── New-PInvoke.ps1.md
├── New-PSOCustomObject.ps1.md
├── New-Password.ps1.md
├── New-PemFile.ps1.md
├── New-PrintJob.ps1.md
├── New-RDP.ps1.md
├── New-RandomComplePassword.ps1.md
├── New-RandomPassword.ps1.md
├── New-SQLComputerLogin.ps1.md
├── New-Script-2.ps1.md
├── New-Script.ps1.md
├── New-ScriptCmdlet.ps1.md
├── New-SelfRestartingTask.ps1.md
├── New-SelfSignedCertificat.ps1.md
├── New-Shortcut.ps1.md
├── New-SqlConnectionString.ps1.md
├── New-StoredProcFunction.ps1.md
├── New-Struct-3.ps1.md
├── New-Struct.ps1.md
├── New-SymLink.ps1.md
├── New-Task.ps1.md
├── New-TextIcon.ps1.md
├── New-TiedVariable.ps1.md
├── New-Type.ps1.md
├── New-UrlFile.ps1.md
├── New-VMHostShellAccount.ps1.md
├── New-WebServiceProxy.ps1.md
├── New-Wrapper.ps1.md
├── New-XML-2.ps1.md
├── New-XML.ps1.md
├── New-XSD.ps1.md
├── New-XVM.ps1.md
├── New-Zip.ps1.md
├── New-ZipFile.ps1.md
├── NewPassword.ps1.md
├── NewUser-in-AD-OCS-Email.ps1.md
├── Newer-LinkedClone.ps1.md
├── Note-open-Notepad.ps1.md
├── NumLock-Notifier.ps1.md
├── Number-River-Multi-Color.ps1.md
├── Number-River.ps1.md
├── O-ChristmasTree.ps1.md
├── O365-Licensing-Module.ps1.md
├── OEM-License.ps1.md
├── ONTAPI-Module.ps1.md
├── Object-ProxyAddress-Scan.ps1.md
├── Office-365-get-email.ps1.md
├── Office-365-wasted-Lics.ps1.md
├── Office-Pass-SaveAs.ps1.md
├── OnTapSDK_Discoverability.ps1.md
├── Onkyo-receiver-control.ps1.md
├── Open-ISEFile.ps1.md
├── Open-Solution.ps1.md
├── Open-Webmin.ps1.md
├── OpenRasta.ps1.md
├── OpsMgr-State-Changes.ps1.md
├── OpsMgr-psd1.ps1.md
├── Oracle-DB-Query-PS.ps1.md
├── Oracle-NetApp-CommVault.ps1.md
├── Order-Importer.ps1.md
├── Order-pizza-with-PoSh.ps1.md
├── Out-AnsiGraph.ps1.md
├── Out-Balloon.ps1.md
├── Out-ColorMatchInfo.ps1.md
├── Out-Colour.ps1.md
├── Out-DataTable.ps1.md
├── Out-Default-URL-Launcher.ps1.md
├── Out-Html.ps1.md
├── Out-ImageView-psm1.ps1.md
├── Out-IseFile.ps1.md
├── Out-LogFile-Module.ps1.md
├── Out-Pastebin.ps1.md
├── Out-Pptx.ps1.md
├── Out-Report.ps1.md
├── Out-Voice.ps1.md
├── Out-Wiki.ps1.md
├── Out-Working.ps1.md
├── Outlook-PST-Backup.ps1.md
├── PE.ps1.md
├── POC-csharp-expressions.ps1.md
├── POC-psnull.ps1.md
├── PROMPT-Battery-life.ps1.md
├── PS-FindFirstFileW.ps1.md
├── PS-Get-RAM-size.ps1.md
├── PS-ImgBurn-burn-all-ISOs.ps1.md
├── PS-Malware.ps1.md
├── PS-file-locking.ps1.md
├── PS2WCF.ps1.md
├── PSCron.ps1.md
├── PSISELibrary.ps1.md
├── PSTMapper.ps1.md
├── PSTUtility-psm1.ps1.md
├── PShell-Tiny-Videogame.ps1.md
├── PShellExec.ps1.md
├── PWD-Expiration-Email.ps1.md
├── PackageManagementHelper.ps1.md
├── Page-Output.ps1.md
├── Paint-board.ps1.md
├── Paraimpu.ps1.md
├── Parameter-Automation.ps1.md
├── Parse-ApacheRedirects.ps1.md
├── Parse-GPO-Settings.ps1.md
├── Parse-HTML-Tables.ps1.md
├── Parse-nmap-XML-output.ps1.md
├── Parse-youtube-links.ps1.md
├── Password-Expire-Mail.ps1.md
├── Password-Functions.ps1.md
├── Password-Gen-Form-V2.ps1.md
├── Password-Gen-v-20170412.ps1.md
├── Password-Generator.ps1.md
├── Password-manager.ps1.md
├── PasswordNeverExpires.ps1.md
├── Pastebin-Functions.ps1.md
├── Pause-Script-amp-Out-More.ps1.md
├── Pause.ps1.md
├── Performance-Counters.ps1.md
├── Performance-Monitoring.ps1.md
├── PerformanceHistory.ps1.md
├── PerformanceTracking-psm1.ps1.md
├── Ping-Alert-Script.ps1.md
├── Ping-Host.ps1.md
├── Ping-Subnet.ps1.md
├── Ping-WSMan.ps1.md
├── Ping-t-using-powershell.ps1.md
├── PinnedApplications-psm1.ps1.md
├── Pipe-Clipboard-to-Word.ps1.md
├── Pipeline-and-Parameter.ps1.md
├── Pivot-Object.ps1.md
├── Please-hep.ps1.md
├── PoSh-Email-Tester-GUI.ps1.md
├── PoSh-Quick-Guide.ps1.md
├── PoSh-hex2dec.ps1.md
├── Poczta.ps1.md
├── Pomodoro-Module.ps1.md
├── Poor-man-s-network-scanner.ps1.md
├── Portgroup-NIC-Team.ps1.md
├── PoshCode-ISE-Addon.ps1.md
├── Poshboard-Inactive-AD-Ac.ps1.md
├── Power-state.ps1.md
├── PowerBot.ps1.md
├── PowerCLI-New-Farm.ps1.md
├── PowerCLI-error-report.ps1.md
├── PowerChart.ps1.md
├── PowerGrowl-Sample.ps1.md
├── PowerOAuth-Beta-2.ps1.md
├── PowerOAuth.ps1.md
├── PowerOn-VM.ps1.md
├── PowerOracle.ps1.md
├── PowerShell-CMatrix.ps1.md
├── PowerShell-Crypto-Ransom.ps1.md
├── PowerShell-CrytpoLocker.ps1.md
├── PowerShell-Form-Builder.ps1.md
├── PowerShell-Free-Busy.ps1.md
├── PowerShell-RegEx.ps1.md
├── PowerShell-Talk-Chickens.ps1.md
├── PowerShell-Talk-Xen1.ps1.md
├── PowerShell-Template.ps1.md
├── PowerShell-script-config.ps1.md
├── PowerShell-script-for-gathering-remote-.ps1.md
├── PowerShell-script-for-shrinking-a-.ps1.md
├── PowerShell_ISE-Profile.ps1.md
├── PowerSmug-Sync-Smugmug.ps1.md
├── PowerWatin.ps1.md
├── Powershell-Only-Outlook.ps1.md
├── Powershell-Scripting.ps1.md
├── Powershell-console-menu.ps1.md
├── Powershell-iTunes.ps1.md
├── Powershell-script-to-get-data-.ps1.md
├── PresentationFrame-xaml.ps1.md
├── Prevent-Screensaver.ps1.md
├── Process-Count-CheckAlert.ps1.md
├── Product-Code-to-GUID.ps1.md
├── Product-key.ps1.md
├── Productivity-Calculator.ps1.md
├── Progress-Message-popup.ps1.md
├── ProgressMessage.ps1.md
├── Prompt-Replacement.ps1.md
├── PromptFor-File.ps1.md
├── Protect-Variable.ps1.md
├── Publish-File.ps1.md
├── Publish-Friendfeed-Entry.ps1.md
├── PurgeFiles-script.ps1.md
├── Putty-Port-Forward-Helpe.ps1.md
├── Putty-SSH-Tunnels.ps1.md
├── Q762D-W47F6-FFW48-VKKC2.ps1.md
├── QAD-psm1.ps1.md
├── Query-MagisterWebservice.ps1.md
├── Query-VeeamBackupDB.ps1.md
├── Quest-Dynamic-Group-001.ps1.md
├── Quest-Dynamic-Group-002.ps1.md
├── Quest-Dynamic-Group-003.ps1.md
├── Quest-Dynamic-Group-004.ps1.md
├── Quest-Dynamic-Group-005.ps1.md
├── Queue-Checker.ps1.md
├── Quick-script-signer-using-the-.ps1.md
├── Quickstats-from-VMware.ps1.md
├── Quitting-Time-Clock.ps1.md
├── RBL-Black-list-checker.ps1.md
├── RDC-RemoteApp-PassMan.ps1.md
├── REALLY-validates-given-IP-address-.ps1.md
├── RESTful-Server.ps1.md
├── RSS-Enclosure-Downloader.ps1.md
├── Ransomware-Restore.ps1.md
├── Re-IP-VMs.ps1.md
├── Read-Choice.ps1.md
├── Read-DllExportFunctions.ps1.md
├── Read-Gmail-POP.ps1.md
├── Read-HostMasked.ps1.md
├── Read-HostWithPrompt.ps1.md
├── Read-InputBox.ps1.md
├── Read-JSON.ps1.md
├── Read-in-an-IIS-log-.ps1.md
├── Reading-DNS-Debug-logs.ps1.md
├── Reading-RAR.ps1.md
├── Rebuild-Windows-Indexing.ps1.md
├── Receive-Stream.ps1.md
├── Recursive-File-Update.ps1.md
├── Recycle-Bin-Object.ps1.md
├── Recycle-Item.ps1.md
├── Reflection-Module.ps1.md
├── Reflection.ps1.md
├── Refresh-AG-All-DBs.ps1.md
├── Refresh-Mirrored-Databas.ps1.md
├── Refresh-an-AG-DB.ps1.md
├── RegEx-Quick-Reference.ps1.md
├── RegQuery.ps1.md
├── Regex-fun.ps1.md
├── Register-TemporaryEvent.ps1.md
├── Register-Timer.ps1.md
├── Release-ComObject.ps1.md
├── Release-Ref.ps1.md
├── Relocate-vApp.ps1.md
├── Remote-Install.ps1.md
├── Remote-Uninstall.ps1.md
├── Remote-WSUS-Settings.ps1.md
├── Remotely-query-select-machines-for-.ps1.md
├── Remove-AeroPeek.ps1.md
├── Remove-All-Java.ps1.md
├── Remove-Alpha-from-ARGB.ps1.md
├── Remove-CCMNamespace.ps1.md
├── Remove-DeadITunesTracks.ps1.md
├── Remove-Disabled-AD-Users.ps1.md
├── Remove-DownloadFlag.ps1.md
├── Remove-Duplicate-Notes.ps1.md
├── Remove-FTPFile.ps1.md
├── Remove-LocalProfile.ps1.md
├── Remove-MyOldComputers.ps1.md
├── Remove-SCCMDPContent.ps1.md
├── Remove-Special-Char.ps1.md
├── Remove-Trash.ps1.md
├── Remove-XmlNamespace.ps1.md
├── Remove-broken-NTFS-perm.ps1.md
├── Remove-diacritics.ps1.md
├── Remove-local-profiles.ps1.md
├── Rename-NICs.ps1.md
├── Renaming-folder-names.ps1.md
├── Renew-Certificates.ps1.md
├── Repair-ScriptQuotes.ps1.md
├── Repeating-job-boot.ps1.md
├── Replace-InTextFile.ps1.md
├── Replicate-ADDS.ps1.md
├── Report-DecomVMs.ps1.md
├── Report-RecipientCounts.ps1.md
├── Report-movie-lib-stats.ps1.md
├── Repost-from-http-forum-script-.ps1.md
├── Require-Function.ps1.md
├── Reset-SharePoint-Alerts.ps1.md
├── ResetOutlookLivePassword.ps1.md
├── Resize-Console-Window.ps1.md
├── Resize-Image.ps1.md
├── Resizer-of-pictures.ps1.md
├── Resolve-Aliases.ps1.md
├── Resolve-Error.ps1.md
├── Resolve-Url.ps1.md
├── ResolvePaths.ps1.md
├── Restart-IISAppPool.ps1.md
├── Restore-Database.ps1.md
├── ResultantSetOfPolicy.ps1.md
├── Reverse-filename-sequenc.ps1.md
├── RichCopyMyProfile.ps1.md
├── RoboCopyWrapper.ps1.md
├── RoboGUI.ps1.md
├── Robocopy-Analyser.ps1.md
├── Robocopy-Log-analyser.ps1.md
├── Robocopy-Summary.ps1.md
├── Robocopy-Wrapper.ps1.md
├── Roll-Dice.ps1.md
├── Rollback-Policy-Module.ps1.md
├── Roman-Numeral-Clock.ps1.md
├── Rotate-Right.ps1.md
├── Route-psm1.ps1.md
├── Run-NET-optimizations.ps1.md
├── Run-PowerShell-Script-from-an-.ps1.md
├── Run-Query-SharePoint.ps1.md
├── Run-Query.ps1.md
├── RunAsAdmin-Tool.ps1.md
├── RunSSIS.ps1.md
├── SCOM-CreatePortMonitor.ps1.md
├── SCOM-GW-Certificate-AE.ps1.md
├── SDM-GPAE.ps1.md
├── SMS-psm1.ps1.md
├── SNTP.ps1.md
├── SQL-Agent-Jobs-to-Excel.ps1.md
├── SQL-Log-Backup.ps1.md
├── SQL-Query-AD-Pwd-Reset.ps1.md
├── SQL-Select.ps1.md
├── SQL-Server-Login.ps1.md
├── SQL-Update.ps1.md
├── SQL-User-Permissions.ps1.md
├── SQLPSX-SSIS-Demo.ps1.md
├── SQLParser.ps1.md
├── SQLite-Read-Write.ps1.md
├── SSL-Oblivious-Web-Client.ps1.md
├── SUG-Cleanup-Installer.ps1.md
├── SVMotion-VM.ps1.md
├── Sample-MultiThreading.ps1.md
├── Saturated-arithmetic.ps1.md
├── Save-Credentials.ps1.md
├── Save-CurrentFile-ISE.ps1.md
├── Scalar-context.ps1.md
├── Scan-VB6-Code.ps1.md
├── ScheduleGPOBackups.ps1.md
├── ScheduledTasks.ps1.md
├── Scom2012-Maintenance-Mod.ps1.md
├── Scratchfolder-creation.ps1.md
├── Script-Object.ps1.md
├── Script-Proc-sql.ps1.md
├── Script-demonstrates-automated-SQL-database-.ps1.md
├── Script-logging.ps1.md
├── Script-to-compress-files-from-.ps1.md
├── ScriptMethod-Example.ps1.md
├── ScriptSVN.ps1.md
├── ScriptTransforms-module.ps1.md
├── ScriptingAgentConfig-xml.ps1.md
├── Scrum-Labels-in-GitHub.ps1.md
├── Seach-LocalGroupMember.ps1.md
├── Search-AD-Forest.ps1.md
├── Search-AD.ps1.md
├── Search-CertificateStore.ps1.md
├── Search-ExTrackingLogs.ps1.md
├── Search-Files-by-Date.ps1.md
├── Search-Help.ps1.md
├── Search-Network.ps1.md
├── Search-NetworkService.ps1.md
├── Search-PoshcodeScript.ps1.md
├── Search-Registry.ps1.md
├── Search-SQL-Error-Log.ps1.md
├── Search-StartMenu.ps1.md
├── Search-Twitter.ps1.md
├── Search-Windows-Updates.ps1.md
├── Search-WmiNamespace.ps1.md
├── Search-cmdlet-help.ps1.md
├── Search-for-PowerCLI-4-1-.ps1.md
├── SearchZIP-psm1-Module-Fi.ps1.md
├── SearchZIP-psm1.ps1.md
├── Searching-Word.ps1.md
├── Security-Log-Events.ps1.md
├── Security-group-monitor.ps1.md
├── See-You-Posh-Cowboy.ps1.md
├── See-You-Space-Cowboy.ps1.md
├── Select-Alive.ps1.md
├── Select-CLSCompliant.ps1.md
├── Select-CSVString.ps1.md
├── Select-EnumeratedType.ps1.md
├── Select-Expand.ps1.md
├── Select-FilteredObject.ps1.md
├── Select-GraphicalFiltered.ps1.md
├── Select-ItemV2.ps1.md
├── Select-Random.ps1.md
├── Select-TextOutput.ps1.md
├── Select-UserGroup.ps1.md
├── Select-ViaGUI.ps1.md
├── Select-Xml.ps1.md
├── Select-w-subproperties.ps1.md
├── Send-EmailNotifyOfLogin.ps1.md
├── Send-FTP.ps1.md
├── Send-File.ps1.md
├── Send-Growl.ps1.md
├── Send-HL7Message.ps1.md
├── Send-HTMLFormattedEmail.ps1.md
├── Send-HipChat.ps1.md
├── Send-MailMessage.ps1.md
├── Send-MessageSuccess.ps1.md
├── Send-Paste.ps1.md
├── Send-Popup.ps1.md
├── Send-SMSMessage.ps1.md
├── Send-SNMP-trap.ps1.md
├── Send-SlackChat.ps1.md
├── Send-SmtpMessage.ps1.md
├── Send-TcpRequest.ps1.md
├── Send-WakeOnLan.ps1.md
├── Send-XmppMessage.ps1.md
├── Send-mail-to-BCC-using-P.ps1.md
├── Send-mail-to-BCC.ps1.md
├── Sendmail-for-PoSh-2-CTP3.ps1.md
├── Sendmail-for-PoSh.ps1.md
├── Server-Inventory.ps1.md
├── Server-checks.ps1.md
├── Servers-in-Computers-OU.ps1.md
├── ServicePWChgReset.ps1.md
├── Services-Auto-NotRunning.ps1.md
├── Set-ADUserRandomPassword.ps1.md
├── Set-Active-Sync-DeviceID.ps1.md
├── Set-AppCompatFlag.ps1.md
├── Set-AssemblyBindLogging.ps1.md
├── Set-AttachedProperty.ps1.md
├── Set-Blur.ps1.md
├── Set-Clipboard.ps1.md
├── Set-Computername.ps1.md
├── Set-ConsoleProperties.ps1.md
├── Set-DNSServersToOpenDNS.ps1.md
├── Set-DfsnForDR.ps1.md
├── Set-Domain.ps1.md
├── Set-ESXRemoteCLI.ps1.md
├── Set-Encoding.ps1.md
├── Set-EnvironmentVariable.ps1.md
├── Set-Extension.ps1.md
├── Set-FSMORoleOwner.ps1.md
├── Set-FT.ps1.md
├── Set-FileWriteable.ps1.md
├── Set-FolderCompression.ps1.md
├── Set-IISLogLocation.ps1.md
├── Set-IPAddress.ps1.md
├── Set-IPConfigv2.ps1.md
├── Set-IPConfigv4.ps1.md
├── Set-IseZoom.ps1.md
├── Set-JavaPropertyFileValu.ps1.md
├── Set-KeepAliveTime.ps1.md
├── Set-LocalPassword.ps1.md
├── Set-LocalUserAccount.ps1.md
├── Set-LocalUserPWD.ps1.md
├── Set-Logfile-length.ps1.md
├── Set-NightVolume.ps1.md
├── Set-OCSUser.ps1.md
├── Set-Opacity.ps1.md
├── Set-Outlook-Signatures.ps1.md
├── Set-OutlookSignature.ps1.md
├── Set-PSObjectDefaultPrope.ps1.md
├── Set-PowerGUIWelcomePage.ps1.md
├── Set-PrimaryDnsSuffix.ps1.md
├── Set-Privilege.ps1.md
├── Set-Prompt.ps1.md
├── Set-Proxy.ps1.md
├── Set-PsBreakPointLastErro.ps1.md
├── Set-RDPSetting.ps1.md
├── Set-RandomFile.ps1.md
├── Set-RemoteRegistryKeyPro.ps1.md
├── Set-RemoteService.ps1.md
├── Set-Resource-Limits.ps1.md
├── Set-ScreenResolution.ps1.md
├── Set-SecureAutoLogon.ps1.md
├── Set-SendAs.ps1.md
├── Set-Single-email.ps1.md
├── Set-TopMost.ps1.md
├── Set-UserCannotChangePass.ps1.md
├── Set-VMBuildCSVDeploy.ps1.md
├── Set-VMware-CBT.ps1.md
├── Set-WLWAutoLink.ps1.md
├── Set-Wallpaper-CTP2.ps1.md
├── Set-Wallpaper-CTP3-fix.ps1.md
├── Set-Wallpaper-CTP3.ps1.md
├── Set-Watcher.ps1.md
├── Set-WebConfig.ps1.md
├── Set-WinSchedule.ps1.md
├── Set-WindowTransparent.ps1.md
├── Set-Writable.ps1.md
├── Set-account-password.ps1.md
├── Set-custom-IP-address.ps1.md
├── Set-defaultBrowser.ps1.md
├── Set-dvSwitch.ps1.md
├── Set-vSphere-CDP-LinkDisc.ps1.md
├── SetDefaultPrinter.ps1.md
├── Setup-Profile.ps1.md
├── Setup-SQLVM3.ps1.md
├── Share-Perms.ps1.md
├── SharePoint-Large-Lists.ps1.md
├── SharePoint-Site-Owners.ps1.md
├── SharePoint-UserID-grab.ps1.md
├── SharpPcap.ps1.md
├── SharpSSH-Module.ps1.md
├── SharpSsh-3.ps1.md
├── SharpSsh-Functions.ps1.md
├── Shell-ShellLink.ps1.md
├── Shift-Left.ps1.md
├── Shift-Operators-Correct.ps1.md
├── Short-PS-Prompt.ps1.md
├── Show-ADGroupMembership.ps1.md
├── Show-ADObject.ps1.md
├── Show-CPU.ps1.md
├── Show-ColorizedContent.ps1.md
├── Show-ConsoleMenu.ps1.md
├── Show-Databases-on-server.ps1.md
├── Show-Drive-Sizes.ps1.md
├── Show-EventLog.ps1.md
├── Show-HtmlHelp.ps1.md
├── Show-Last-Backup-Server.ps1.md
├── Show-Last-DB-Backup.ps1.md
├── Show-MyDotNetVersions.ps1.md
├── Show-NodeXLMap.ps1.md
├── Show-Sample1.ps1.md
├── Show-Sample2.ps1.md
├── Show-Weather-Notificatio.ps1.md
├── Show-WindowsUpdates.ps1.md
├── ShowUI-Binary-Clock.ps1.md
├── ShowUI-Clock-6.ps1.md
├── ShowUI-Text-Converter.ps1.md
├── ShowUI-Weather-Widget.ps1.md
├── Shuffle-String.ps1.md
├── Simple-Test-with-Speech.ps1.md
├── Site-and-Lists-item.ps1.md
├── Sj-strand.ps1.md
├── Skip-Object.ps1.md
├── Snippet-Compiler.ps1.md
├── So-many-holla-dollas.ps1.md
├── SoapAction-Wsdl.ps1.md
├── Solarized-Dark-Theme.ps1.md
├── Sometimes-our-terminalserver-sessions-become-.ps1.md
├── Sort-IE-Favorites.ps1.md
├── SpeakToMe.ps1.md
├── Speech-Recognition-2.ps1.md
├── Speech-Recognition.ps1.md
├── Spin-Busy.ps1.md
├── Split-ByLength.ps1.md
├── Split-File.ps1.md
├── Split-Job-V.ps1.md
├── Split-Job-Version.ps1.md
├── Split-Job.ps1.md
├── Split-String.ps1.md
├── Split-TextToLines-Demo.ps1.md
├── Split.ps1.md
├── Spread-Mailboxes.ps1.md
├── SqlProxy-psm1.ps1.md
├── Staff-SQL-Server-DBA.ps1.md
├── Standard-Deviation.ps1.md
├── Start-AppVTestMode.ps1.md
├── Start-AtomToJabber.ps1.md
├── Start-BootsTimer.ps1.md
├── Start-Cassini.ps1.md
├── Start-ComputerJobs.ps1.md
├── Start-Countdown.ps1.md
├── Start-Demo-1-for-PS3-ISE.ps1.md
├── Start-Demo.ps1.md
├── Start-Elevated.ps1.md
├── Start-Encryption.ps1.md
├── Start-FolderSync.ps1.md
├── Start-IRCJabberBridge.ps1.md
├── Start-Job-help.ps1.md
├── Start-Job-proxy-function.ps1.md
├── Start-MyTranscript.ps1.md
├── Start-NamedPipe.ps1.md
├── Start-Presentation.ps1.md
├── Start-Process.ps1.md
├── Start-ProcessAsAdministr.ps1.md
├── Start-ProcessAsUser.ps1.md
├── Start-RDP.ps1.md
├── Start-SCOM-Maint-Mode.ps1.md
├── Start-SQL.ps1.md
├── Start-ScriptThreading.ps1.md
├── Start-Selected.ps1.md
├── Start-TimeoutDialog.ps1.md
├── Start-Timer.ps1.md
├── Starwars-Get-Droids.ps1.md
├── Step-1.ps1.md
├── Step02a-Export_VM-to-Fol.ps1.md
├── Step02b-Import-VM-to-Fol.ps1.md
├── Step03a-DatastoreCluster.ps1.md
├── Step03b-Move-datastore-t.ps1.md
├── Step04-Copy_VLAN_clust.ps1.md
├── Stop-Pipeline.ps1.md
├── Stop-ProcessRemote.ps1.md
├── Stop-ServiceandProcess.ps1.md
├── Stop-service-and-wait.ps1.md
├── Stop-stuck-jobs.ps1.md
├── StopSQLServices.ps1.md
├── Stored-Credential-Code.ps1.md
├── Sub-Array-with-the-Large.ps1.md
├── Subversion-Functions.ps1.md
├── SuperMario-PowerShell.ps1.md
├── SupportsPagingDemo.ps1.md
├── Suspend-Process.ps1.md
├── Sweet-Child-O-Mine.ps1.md
├── Sybase-Error-Log-Check.ps1.md
├── Sync-Files-and-Folders.ps1.md
├── Sync-Time.ps1.md
├── SyntaxHighlighter-Brush.ps1.md
├── Sys-Adm.ps1.md
├── SysMon-Event-Data.ps1.md
├── TCP-Client-Server.ps1.md
├── TEST-ME.ps1.md
├── TSQL-Auto-Programming.ps1.md
├── TSQL-Script-Runner.ps1.md
├── TSRemoteApp.ps1.md
├── TabExpansion-for-V2CTP3.ps1.md
├── TabExpansion.ps1.md
├── Tac-reverse-cat.ps1.md
├── Tag-Alert-SCOM.ps1.md
├── Take-Screenshot.ps1.md
├── Target-Game.ps1.md
├── TeamViewer-Panel.ps1.md
├── TeamViewer.ps1.md
├── Templates-and-Tables.ps1.md
├── Terminate-process-user.ps1.md
├── Test-64BitOS.ps1.md
├── Test-ADCredentials.ps1.md
├── Test-BufferBox.ps1.md
├── Test-Certificate.ps1.md
├── Test-CommandValidation.ps1.md
├── Test-DNSAliasChange.ps1.md
├── Test-DependentModule.ps1.md
├── Test-EmptyFolder.ps1.md
├── Test-FileLock.ps1.md
├── Test-Hash-2.ps1.md
├── Test-Hash.ps1.md
├── Test-Help.ps1.md
├── Test-Host-V1.ps1.md
├── Test-Host.ps1.md
├── Test-IPMask.ps1.md
├── Test-IsAdmin.ps1.md
├── Test-Ora-Proc-Wrapper-1.ps1.md
├── Test-Packer.ps1.md
├── Test-Port.ps1.md
├── Test-Prompt.ps1.md
├── Test-QADObject.ps1.md
├── Test-Server.ps1.md
├── Test-SqlConnection.ps1.md
├── Test-TCPPort.ps1.md
├── Test-Transcribing.ps1.md
├── Test-UserCredential.ps1.md
├── Test-VM.ps1.md
├── Test-WebDAV.ps1.md
├── Test-if-file-is-writable.ps1.md
├── The-Easy-Migration-script-enables-.ps1.md
├── The-Letter-Diamond-Oneli.ps1.md
├── The-Letter-Diamond.ps1.md
├── The-Old-Dogs-ExcelCookBo.ps1.md
├── The-PowerShell-Talk-Xen2.ps1.md
├── The-following-powershell-code-allows-.ps1.md
├── The-other-Post.ps1.md
├── TheGameOfLife.ps1.md
├── TheMathFunction.ps1.md
├── Thin-provisioning-with-P.ps1.md
├── This-is-a-very-quick-.ps1.md
├── This-is-the-sister-script-.ps1.md
├── This-newer-version-of-the-.ps1.md
├── This-script-performs-OpenLdap-query-.ps1.md
├── This-script-will-recursively-enumerate-.ps1.md
├── This-script-will-take-a-.ps1.md
├── This-script-will-trap-events-.ps1.md
├── Time-Stamp.ps1.md
├── TimeSyn-HyperV-Settings.ps1.md
├── Trace-Message.ps1.md
├── Trace-Route.ps1.md
├── Translate-Service-DACLS.ps1.md
├── TreeView-Sample.ps1.md
├── Trim-Working-Set-for-PID.ps1.md
├── Trims-text-and-signs-it.ps1.md
├── TripIt-calendar.ps1.md
├── Twitbrain-cheat.ps1.md
├── Twitter-Moduleb.ps1.md
├── Type-Typewriter.ps1.md
├── TypeAlias-amp-Accelerators.ps1.md
├── Types-ps1xml.ps1.md
├── UCS-ServiceProf-fromList.ps1.md
├── UCS_FaultReport.ps1.md
├── UIAutomation-Simple-2.ps1.md
├── UIAutomation-Simple.ps1.md
├── UIAutomation-V1.ps1.md
├── UIAutomation.ps1.md
├── USB-Script-backup.ps1.md
├── Union-types.ps1.md
├── Unix-Out-File.ps1.md
├── Unlock-amp-Password-Reset.ps1.md
├── Unlock-the-account.ps1.md
├── Unzip-Files.ps1.md
├── Update-AD-Security-Group.ps1.md
├── Update-GAC.ps1.md
├── Update-ISETabs.ps1.md
├── Update-Scopes.ps1.md
├── Update-Subnet-Masks.ps1.md
├── Update-Sysinternals.ps1.md
├── Update-SysinternalsSuite.ps1.md
├── Update-Tools-Policy-VMwr.ps1.md
├── Update-User-Profiles.ps1.md
├── Update-VM-Tools.ps1.md
├── Update-phone-in-AD.ps1.md
├── Update-vSwitchSecurity.ps1.md
├── Update-web-config.ps1.md
├── UpdateJava.ps1.md
├── Updated-CloneVM-from-CSV.ps1.md
├── Updates-group-policy.ps1.md
├── Upgrade-Templates-to-v7.ps1.md
├── Upgrade-VM-s-to-v7.ps1.md
├── Use-Culture.ps1.md
├── Use-SSRS-ReportViewer-with-PowerShell-.ps1.md
├── Use-of-export-csv-Append.ps1.md
├── Use-the-wide-unicode-versions-.ps1.md
├── Used-USB-Devices.ps1.md
├── User-Entitlement-Auditor.ps1.md
├── User-Logon-details.ps1.md
├── User-Lookup-Script.ps1.md
├── User-Obj-ProxyAddresses.ps1.md
├── User-Search.ps1.md
├── User-Termination-Script.ps1.md
├── Users-Contacts-from-CSV.ps1.md
├── Using-Culture.ps1.md
├── Using-Read-Choice.ps1.md
├── Using-Selenium-in-powershell-for-.ps1.md
├── Using-Task-Sch-wrapper.ps1.md
├── VB-MsgBox-Powershell.ps1.md
├── VCenter-Reporting.ps1.md
├── VHDFunctions-psm1.ps1.md
├── VLFs-to-Excel-Formatted.ps1.md
├── VM-Disk-Report.ps1.md
├── VM-Performance-Report.ps1.md
├── VMWare-DS-Migration.ps1.md
├── VMWare-Quick-Migration.ps1.md
├── VMWare-VMNET-Adapters.ps1.md
├── VMtools-update-No-reboot.ps1.md
├── VMware-Daily-Report.ps1.md
├── VMware-Host-Network-Info.ps1.md
├── VMware-Lab-Manager-4-x.ps1.md
├── VMware-Windows-Admin.ps1.md
├── VMware-and-NetApp-file-f.ps1.md
├── VMware-custom-attributes.ps1.md
├── VMware-datastore-graph.ps1.md
├── VMware-guest-information.ps1.md
├── VMware-sVmotion-throttle.ps1.md
├── VS-PS-Tools-Dark.ps1.md
├── Validate-SPN-Mappings.ps1.md
├── Variable-capture.ps1.md
├── Veeam-backup-to-OVF.ps1.md
├── VerifyCategoryRule.ps1.md
├── Vim25-Crazy-Magic.ps1.md
├── Vim25-less-Crazy-Magic.ps1.md
├── W10-Default-Apps.ps1.md
├── W8-PseudoStartMenu.ps1.md
├── WCF-code-coverage.ps1.md
├── WIMM-Emulator-Launcher.ps1.md
├── WMI-Explorer.ps1.md
├── WMI-wifi-metric-gt-LAN.ps1.md
├── WPF-WInForm-shortcuts.ps1.md
├── WPF-v3-DEMO.ps1.md
├── WPK_TunnelGradient.ps1.md
├── WSS-MOSS-export.ps1.md
├── WSUS-Admin-Module.ps1.md
├── WSUS-Settings.ps1.md
├── WSUS-production-approval.ps1.md
├── Wacth-TechED-Sessions.ps1.md
├── WakeOnLan.ps1.md
├── Watch-Expression.ps1.md
├── Watch-Process.ps1.md
├── Watch-SG2011LeaderBoard.ps1.md
├── Web-Health-Check.ps1.md
├── WebServer.ps1.md
├── Wednesday-Class.ps1.md
├── WellKnownSidType.ps1.md
├── WhatIs.ps1.md
├── Where-Like.ps1.md
├── WhereIsMyVM.ps1.md
├── WhileTimeout.ps1.md
├── WhoAmI.ps1.md
├── WhoIs.ps1.md
├── WinPE-PushButton-Reset.ps1.md
├── WinSCPPowershell-Module.ps1.md
├── Windows-Backup-Check.ps1.md
├── Windows-Server-Backup.ps1.md
├── Windows-Startup-Script.ps1.md
├── Windows-server-health.ps1.md
├── WindowsInstallPoint.ps1.md
├── Wireless-Signal-Strength.ps1.md
├── Wizard-template.ps1.md
├── Work-in-progressSPdeploy.ps1.md
├── Wpf-with-powershell.ps1.md
├── Wrapper-1-Select-String.ps1.md
├── Write-ASCII-Letters.ps1.md
├── Write-Console.ps1.md
├── Write-DataTable.ps1.md
├── Write-FileInfoToSQL.ps1.md
├── Write-Host.ps1.md
├── Write-Indented.ps1.md
├── Write-IndexFragmentation.ps1.md
├── Write-IseFile.ps1.md
├── Write-Log-System-Center.ps1.md
├── Write-Log.ps1.md
├── Write-MiniDump.ps1.md
├── Write-Output.ps1.md
├── Write-ProgressForm.ps1.md
├── Write-ScriptVariables.ps1.md
├── Write-SessionLockdown.ps1.md
├── Write-Sitemap.ps1.md
├── Write-Twilight.ps1.md
├── Write-Typewriter.ps1.md
├── WriteFileName.ps1.md
├── XC_SMTPFunctions.ps1.md
├── Xml-Module.ps1.md
├── Zip-database-trace-files.ps1.md
├── ZipFile-Module.ps1.md
├── accelerators-for-posh-2.ps1.md
├── access-psu-edu.ps1.md
├── ad-obj-report.ps1.md
├── aone.ps1.md
├── buffer-take.ps1.md
├── bullshit.ps1.md
├── cd-command-with-history.ps1.md
├── check-disabledstatus.ps1.md
├── check-installed-not-refreshed-after-.ps1.md
├── check-nsca.ps1.md
├── chkhash.ps1.md
├── ciao.ps1.md
├── compliance-settings.ps1.md
├── connect-domain.ps1.md
├── convert-CSV-s-to-Excel.ps1.md
├── coolprompt.ps1.md
├── copy-data.ps1.md
├── count-object.ps1.md
├── cpu-usage.ps1.md
├── createSiteFromTemplate.ps1.md
├── custom-directory-in-UI.ps1.md
├── custompsobjectexampleexp.ps1.md
├── datareader-to-dataset.ps1.md
├── datetime-Week.ps1.md
├── dd-txt.ps1.md
├── default-config.ps1.md
├── demo-attributes.ps1.md
├── df.ps1.md
├── dget-windows-product-key.ps1.md
├── dir-mus-com-net.ps1.md
├── directories-tree.ps1.md
├── disabled-AD-accounts.ps1.md
├── diskreport.ps1.md
├── divide-integer.ps1.md
├── docx2txt-wi-out-MSOffice.ps1.md
├── doxc2txt-wi-out-MSOffice.ps1.md
├── drivers-list.ps1.md
├── dvSwitchNetworkAdapter.ps1.md
├── egg_timer.ps1.md
├── elevate-process-sudo.ps1.md
├── env-PATH-permanently.ps1.md
├── export-migrations.ps1.md
├── find-localadmins.ps1.md
├── finddupe.ps1.md
├── foreach-withexception.ps1.md
├── format-example.ps1.md
├── forthebetterr.ps1.md
├── furaffinity-net.ps1.md
├── gather-take.ps1.md
├── get-ContentFromString.ps1.md
├── get-DiskVolumeInfo.ps1.md
├── get-ESXiHostConfigBackup.ps1.md
├── get-GPOReportSize.ps1.md
├── get-SQLInstanceInfo.ps1.md
├── get-attach-from-Lotus.ps1.md
├── get-certinfo.ps1.md
├── get-highCPUprocesses.ps1.md
├── get-ipinformation.1055.ps1.md
├── get-kbinfo.ps1.md
├── get-localadministrators.ps1.md
├── get-lockedtime.ps1.md
├── get-outlookFolderSize.ps1.md
├── get-roman.ps1.md
├── get-serials.ps1.md
├── get-smtpconnections.ps1.md
├── get-uuid_allHVs.ps1.md
├── get-windows-product-key.ps1.md
├── get-windowsproductkey.ps1.md
├── getmacs.ps1.md
├── gpupdate-on-remote-pc-s.ps1.md
├── h20-Hashtables-2-object.ps1.md
├── help-needed.ps1.md
├── hex2dec.ps1.md
├── hoi.ps1.md
├── http-bestfreeipadgames.ps1.md
├── http-harleydavidsonmot.ps1.md
├── iSCSI-Module.ps1.md
├── idle-time.ps1.md
├── ieee.ps1.md
├── image2excel.ps1.md
├── init_repoclones.ps1.md
├── invoke-anything.ps1.md
├── ipaupload.ps1.md
├── is-chat.ps1.md
├── is-local-admin.ps1.md
├── isMSDTC.ps1.md
├── journal-mailboxes.ps1.md
├── julio-fernandez-inai-org.ps1.md
├── jumper-psm1.ps1.md
├── kills-trustedinstaller.ps1.md
├── listdlls-possible-draft.ps1.md
├── live-session-fun.ps1.md
├── load-order.ps1.md
├── lol.ps1.md
├── lost-operators.ps1.md
├── lspci.ps1.md
├── mGet-DatastoreList.ps1.md
├── magnet-to-transmission.ps1.md
├── map-network-drive.ps1.md
├── mari07031986.ps1.md
├── medical.ps1.md
├── memory-size.ps1.md
├── mklink.ps1.md
├── mstsc-Ac.ps1.md
├── nested-hashtables.ps1.md
├── new-get-childitem.ps1.md
├── new-pshash.ps1.md
├── out-default.ps1.md
├── out-form-with-sort-colum.ps1.md
├── out-playlist.ps1.md
├── ozforex.ps1.md
├── parse-nmap.ps1.md
├── partial-application.ps1.md
├── ping-check-using-dotNet.ps1.md
├── play-note-s.ps1.md
├── playlist-com-music-cache.ps1.md
├── powershell-ise-config.ps1.md
├── powershell-rocks.ps1.md
├── powertab-patch.ps1.md
├── print-file.ps1.md
├── product-key-on-c.ps1.md
├── profile.ps1.md
├── pslauncher.ps1.md
├── push-module-function-v2.ps1.md
├── quick-hard-coded-script-for-.ps1.md
├── quoted-printable.ps1.md
├── qwinsta.ps1.md
├── rajabatak-my-opera-com.ps1.md
├── read-doc-without-word.ps1.md
├── reconfigure-ha.ps1.md
├── remote-helpdesk-script.ps1.md
├── replace-regexgroup.ps1.md
├── restart-wifi-and-say-it.ps1.md
├── restore-LastSnapshot.ps1.md
├── rss2email.ps1.md
├── runas-sudo.ps1.md
├── running-regions-in-ISE.ps1.md
├── sample-Sys-Info-GUI.ps1.md
├── sample-format-file.ps1.md
├── scriptable-telnet-client.ps1.md
├── sdelete-wipe-file.ps1.md
├── secure-passwords.ps1.md
├── set-FSRMQuotaBasedOnSQL.ps1.md
├── set-ipconfigv6.ps1.md
├── setprimaru.ps1.md
├── show-sqlprocesses.ps1.md
├── sigcheck.ps1.md
├── slideshow-nomonitorsleep.ps1.md
├── sophos_mrupdate.ps1.md
├── sqldom.ps1.md
├── sqlps2.ps1.md
├── strings.ps1.md
├── style-acording-video-res.ps1.md
├── sudo-for-Powershell.ps1.md
├── sudo.ps1.md
├── sysadmin.ps1.md
├── sysinternals-VT-key.ps1.md
├── tail.ps1.md
├── target-local.ps1.md
├── test-connectivity.ps1.md
├── test-local.ps1.md
├── test-post-sqldom-parser.ps1.md
├── test.ps1.md
├── teste-com-br.ps1.md
├── testesr.ps1.md
├── tic-tac-toe-demo.ps1.md
├── tst.ps1.md
├── unix-df-h-analog.ps1.md
├── update-powerpackcolumns.ps1.md
├── uptime-cmd.ps1.md
├── used-drive-letters.ps1.md
├── usr-ActiveSync-Exch-07.ps1.md
├── usr-mailbox-in-exch-07.ps1.md
├── vProfile-ClusterAudit.ps1.md
├── vProfile.ps1.md
├── vShpere-Syslog.ps1.md
├── vSphere-Resultant-Privs.ps1.md
├── validate-an-IP-address.ps1.md
├── vb.ps1.md
├── vibackup-linux-script.ps1.md
├── vibackup-lx.ps1.md
├── vibackup-lx1.ps1.md
├── viewAllTemplate.ps1.md
├── visual-cmd-bat.ps1.md
├── vmrc-remote-connector.ps1.md
├── vmware-guests-subnet.ps1.md
├── werwerwer.ps1.md
├── wget.ps1.md
├── where-in.ps1.md
├── where-property.ps1.md
├── which-js.ps1.md
├── which-where.ps1.md
├── whitebox.ps1.md
├── wlanscan-Win10-Support.ps1.md
├── wlanscan.ps1.md
├── wmiexplorer.ps1.md
├── wmifx-get-pingstatushelp.ps1.md
├── wpf-datagrid-xaml.ps1.md
├── xczxc.ps1.md
└── xls2png.ps1.md
/.gitignore:
--------------------------------------------------------------------------------
1 | compiled_docs
2 | public
3 | *.pdf
4 | .DS_Store
--------------------------------------------------------------------------------
/docs/111.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: anonymous
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4319
10 | Published Date: 2013-07-22t14
11 | Archived Date: 2013-07-25t10
12 | ---
13 |
14 | # 111.ps1 -
15 |
16 | ## Description
17 |
18 | this file was uploaded by a powergui script editor add-on.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function foo {
41 | param(
42 | [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$true)]
43 | [string]
44 | $Text
45 | )
46 | Get-Command -CommandType Cmdlet
47 | Get-Process
48 | "bar"
49 | "QWERTY"
50 | "123"
51 | $Text
52 | }
53 |
54 | foo
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/A-Process-Block.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1145
10 | Published Date:
11 | Archived Date: 2009-06-07t13
12 | ---
13 |
14 | # a process block -
15 |
16 | ## Description
17 |
18 | a process block
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Process {
41 | $InputTypeName = $_.GetType().Name
42 |
43 | if ( $InputTypeName -eq "VMHostImpl" ) {
44 | $output = $_ | Get-View | Select-Object $VMHost_UUID
45 | } elseif ($InputTypeName -eq "Host"){
46 | $output = $_ | get-view | Select-Object $XenHost_UUID
47 | } else {
48 | Write-Host "`nPlease pass this script either a VMHost or VM object on the pipeline.`n"
49 | }
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/AS-function.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: karl prosser
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1019
10 | Published Date: 2009-04-13t14
11 | Archived Date: 2012-04-24t13
12 | ---
13 |
14 | # as function -
15 |
16 | ## Description
17 |
18 | as function. simple wrapper for generating the hashtables that select-object uses
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `new-selectexpression`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function new-selectexpression
41 | {
42 | if ($args.count -eq 1) { $theargs = $args[0] } else {$theargs= $args }
43 | if ($theargs.count -gt 1)
44 | {
45 | for($loop=0;$loop -lt ($theargs.count-1);$loop+=2)
46 | {
47 | @{Name=$theargs[$loop];Expression=$theargs[$loop+1]}
48 | }
49 | }
50 | if (!($theargs.count % 2) -eq 0) {@{Name=$input[$input.count-1];Expression= invoke-Expression "{}" } }
51 | }
52 | set-Alias as new-selectexpression
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Add-Counter.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: billbarry
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5016
10 | Published Date: 2014-03-24t20
11 | Archived Date: 2014-03-30t06
12 | ---
13 |
14 | # add-counter -
15 |
16 | ## Description
17 |
18 | function add-counter (adds count noteproperty to pipeline input to keep a running row count for display); sample usage
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `add-counter`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function Add-Counter {
41 | [CmdletBinding()]
42 | Param(
43 | [parameter(Mandatory=$true, ValueFromPipeline=$true)] $input,
44 | [string] $Name='Count'
45 | )
46 | BEGIN { $i = 0;}
47 | PROCESS {
48 | $i++;
49 | return Add-Member -InputObject $_ -MemberType NoteProperty -Name $Name -Value $i -PassThru
50 | }
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Add-ForeachStatement.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: anonymous
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4311
10 | Published Date: 2013-07-19t09
11 | Archived Date: 2013-07-25t10
12 | ---
13 |
14 | # add-foreachstatement.ps1 -
15 |
16 | ## Description
17 |
18 | this file was uploaded by a powergui script editor add-on.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `add-foreachstatement`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Add-ForeachStatement
41 | {
42 | <#
43 | .Synopsis
44 | Adds a Foreach Statement to the current document Adds a Foreach Statement to the current document Adds a Foreach Statement to the current document
45 | .Description
46 | Adds a Foreach Statement to the current document
47 | .Example
48 | Add-ForeachStatement
49 | #>
50 | param()
51 |
52 | process {
53 | }
54 | }
55 | Add-ForeachStatement
56 | `
57 |
58 |
--------------------------------------------------------------------------------
/docs/Add-new-smtp-address-from-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6563
10 | Published Date:
11 | Archived Date: 2016-11-28t14
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Add-new-smtp-set-prmary.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ermias
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6825
10 | Published Date: 2017-03-29t14
11 | Archived Date: 2017-04-01t14
12 | ---
13 |
14 | # add new smtp/set prmary -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/AlmightyShell-Compiler.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: adam driscoll
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3304
10 | Published Date: 2013-04-01t08
11 | Archived Date: 2013-06-19t07
12 | ---
13 |
14 | # almightyshell compiler -
15 |
16 | ## Description
17 |
18 | see http
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `out-powershell`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Out-PowerShell($AlmightyShell)
41 | {
42 | $compileConstants = 65,112,114,105,108,32,70,111,111,108,115,33;([int[]][char[]]$AlmightyShell) | % { $x = [Math]::PI + $_ };Write-Host ([string][char[]]$compileConstants);
43 | }
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Amazon-AWS-user-data.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: adrianwoodrup
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6521
10 | Published Date: 2016-09-15t17
11 | Archived Date: 2016-11-18t08
12 | ---
13 |
14 | # amazon aws user data -
15 |
16 | ## Description
17 |
18 | this code can be added to an aws instance to set the default password of an ec2 instance. it stops the need for using keys to set the windows password. it needs to be set in the “user data” section when building the instance.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 | $ComputerName = $env:COMPUTERNAME
43 | $user = [adsi]"WinNT://$ComputerName/Administrator,user"
44 | $user.setpassword("Password")
45 |
46 |
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Antivirus-path.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: olivia wild
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6246
10 | Published Date: 2016-03-05t17
11 | Archived Date: 2016-10-18t13
12 | ---
13 |
14 | # antivirus path -
15 |
16 | ## Description
17 |
18 | this script returns a path where antivirus has been installed. it doesn’t use wmi (thanks a lot to greg zakharov for this trick).
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-ChildItem Registry::HKCR\CLSID | ForEach-Object {
41 | $x = (Get-ItemProperty 'Registry::HKCR\Component Categories\*' |
42 | Where-Object {$_ -match 'antivirus'}).PSChildName
43 | }{
44 | if ((Get-ChildItem "$($_.PSPath)\Implemented Categories" -ea 0).PSChildName -eq $x) {
45 | Split-Path (Get-ItemProperty "$($_.PSPath)\InprocServer32").'(default)'
46 | break
47 | }
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/App-V-5-0-create-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4574
10 | Published Date:
11 | Archived Date: 2016-12-25t13
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | app-v 5.0, create friendly folder names for packages. requires powershell community extensions.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $FriendlyFolderName = "MyFriendlyAppV"
41 | $appvroot = $(Get-Itemproperty HKLM:\SOFTWARE\Microsoft\AppV\Client\Streaming).PackageInstallationRoot
42 | $appvPSroot = $appvroot.Replace('%programdata%',$env:ProgramData)
43 |
44 | Get-AppvClientPackage | ForEach-Object {
45 | $targetpath = $appvPSroot + '\' + $_.PackageID.ToString() + '\' + $_.VersionID.ToString()
46 | $Path = "C:\ProgramData\" + $FriendlyFolderName + "\" + $_.Name
47 | New-Junction -LiteralPath $Path -TargetPath $targetpath
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/AutoRefreshWebpage.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: jack neff
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4685
10 | Published Date: 2013-12-09t20
11 | Archived Date: 2013-12-13t12
12 | ---
13 |
14 | # autorefreshwebpage -
15 |
16 | ## Description
17 |
18 | automatically refreshes a webpage. only works in internet explorer…sorry.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $url = "http://www.somepage.com/"
41 | $interval = 60
42 | $shell = New-Object -ComObject Shell.Application
43 |
44 | "Refreshing $url every $interval seconds."
45 | "Press ctrl+c to stop."
46 |
47 | while(1){
48 | if (($shell.Windows() | where LocationURL -eq $url) -eq $null) { start $url }
49 | ($shell.Windows() | where LocationURL -eq $url).Refresh()
50 | sleep $interval
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Backup-all-ESXi.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: carter shanklin
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1559
10 | Published Date:
11 | Archived Date: 2009-12-26t18
12 | ---
13 |
14 | # backup all esxi -
15 |
16 | ## Description
17 |
18 | back up all your esxi hosts to a local directory.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $backupDir = "c:\backups"
41 |
42 | $esxiHosts = Get-VMHost | Where { $_ | Get-View -Property Config | Where { $_.Config.Product.ProductLineId -eq "embeddedEsx" } }
43 |
44 | $esxiHosts | Foreach {
45 | $fullPath = $backupDir + "\" + $_.Name
46 | mkdir $fullPath -ea SilentlyContinue | Out-Null
47 | Set-VMHostFirmware -VMHost $_ -BackupConfiguration -DestinationPath $fullPath
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Bash-file-full-path.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4827
10 | Published Date: 2014-01-22t11
11 | Archived Date: 2014-02-05t10
12 | ---
13 |
14 | # bash -
15 |
16 | ## Description
17 |
18 | prints full path for each file in a directory
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #!/bin/bash
41 |
42 | for file in $(ls -a "$@"); do
43 | echo -n $(pwd)
44 | [[ $(pwd) != "/" ]] && echo -n /
45 | echo $file
46 | done
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Bash-out-shell.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4829
10 | Published Date: 2014-01-22t11
11 | Archived Date: 2014-01-29t05
12 | ---
13 |
14 | # bash -
15 |
16 | ## Description
17 |
18 | shows results of a command in different command shell window
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #!/bin/bash
41 |
42 | gnome-terminal -x bash -c "ls -a;echo Press any key to continue...;read"
43 |
44 | xfce4-terminal -x bash -c "ls -a;echo Press any key to continue...;read"
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Begin-Block.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1144
10 | Published Date:
11 | Archived Date: 2009-06-07t13
12 | ---
13 |
14 | # begin block -
15 |
16 | ## Description
17 |
18 | a begin block
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Begin {
41 | $VMHost_UUID = @{
42 | Name = "VMHost_UUID"
43 | Expression = { $_.Summary.Hardware.Uuid }
44 | }
45 | $XenHost_UUID = @{
46 | Name = "XenHost_UUID"
47 | Expression = { $_.Uuid }
48 | }
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Blow-up-ESXi.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1554
10 | Published Date:
11 | Archived Date: 2009-12-26t18
12 | ---
13 |
14 | # blow up esxi -
15 |
16 | ## Description
17 |
18 | blow up your esxi host. for entertainment purposes only.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | foreach ($i in 10..1) {
41 | Set-VMHostAdvancedConfiguration -name Annotations.WelcomeMessage -value "This host will self destruct in $i"
42 | }
43 | Start-Sleep 10
44 | Set-VMHostAdvancedConfiguration -name Annotations.WelcomeMessage -value ""
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/CPU-model.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5391
10 | Published Date: 2015-08-31t09
11 | Archived Date: 2015-01-31t07
12 | ---
13 |
14 | # cpu model -
15 |
16 | ## Description
17 |
18 | lscpu is the great command but what if i just wanna see cpu model?
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #!/bin/bash
41 | cat /proc/cpuinfo | grep -oP '(?<=name\s\:\s)(.*)' | uniq
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/Can-someone-explain-to-me-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5779
10 | Published Date:
11 | Archived Date: 2016-03-22t05
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | can someone explain to me what the following code is used to do? and how many it will produce? and how would the output be used?
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $chars = "b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"
41 |
42 | foreach($char1 in $chars){
43 | foreach($char2 in $chars){
44 | foreach($char3 in $chars){
45 | foreach($char4 in $chars){
46 | $pw = $char1+$char2+$char3+$char4
47 | write-host $pw
48 | }
49 | }
50 | }
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Check-PowerShell-version.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: adam mendoza
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 3.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3473
10 | Published Date: 2013-06-22t14
11 | Archived Date: 2016-06-19t06
12 | ---
13 |
14 | # check powershell version -
15 |
16 | ## Description
17 |
18 | check if powershell version 3 or higher is installed
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | if($host.Version.Major -lt 3)
42 | {
43 | Write-Host "PowerShell Version 3 or higher needs to be installed" -ForegroundColor Red
44 | Write-Host "Windows Management Framework 3.0 - RC" -ForegroundColor Magenta
45 | Write-Host "http://www.microsoft.com/en-us/download/details.aspx?id=29939" -ForegroundColor Magenta
46 | Break
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Check-e-mail-access-type.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: osnilton k m
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3924
10 | Published Date: 2013-01-31t10
11 | Archived Date: 2013-02-04t05
12 | ---
13 |
14 | # check e-mail access type -
15 |
16 | ## Description
17 |
18 | want to know what type of access a user has to exchange server?
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $ErrorActionPreference = "silentlycontinue"
41 |
42 | $login = read-host -prompt "Type the user login"
43 |
44 | $Status = @( Get-ADuser $login | select SamAccountName).count
45 |
46 | If($Status -eq 0) {
47 |
48 | Write-Host No such user exists! -FOREGROUNDCOLOR RED
49 |
50 | ./the_script_name.ps1
51 |
52 | } Else {Write-Host Working on it! -FOREGROUNDCOLOR GREEN
53 |
54 |
55 | }
56 |
57 |
58 | Get-Mailbox $login | Get-CASMailbox
59 | `
60 |
61 |
--------------------------------------------------------------------------------
/docs/Check-new-gmail.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4560
10 | Published Date: 2013-10-26t16
11 | Archived Date: 2013-11-01t01
12 | ---
13 |
14 | # check new gmail -
15 |
16 | ## Description
17 |
18 | sometimes i have to deal with bash, so…
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #!/bin/bash
41 |
42 | num="\033[1;36m"
43 | end="\033[0m"
44 |
45 | read -p "Enter email without '@gmail.com': " email
46 | read -p "Enter password of email: " pass
47 |
48 | atom=`wget -qO - https://$email:$pass@mail.google.com/mail/feed/atom \
49 | --secure-protocol=TLSv1 -T 3 -t 1 --no-check-certificat | grep \
50 | fullcount | sed -e 's/\(.*\)<\/fullcount>/\1/'`
51 |
52 | echo -e 'You have '$num$atom$end' new letter(s)'
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Close-Control.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: anonymous
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4284
10 | Published Date: 2013-07-02t11
11 | Archived Date: 2013-07-09t04
12 | ---
13 |
14 | # close-control.ps1 -
15 |
16 | ## Description
17 |
18 | this file was uploaded by a powergui script editor add-on.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `close-control`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Close-Control
41 | {
42 | param(
43 | [Parameter(Mandatory=$true,
44 | ValueFromPipeline=$true)]
45 | [Windows.Media.Visual]
46 | $Visual
47 | )
48 |
49 | process {
50 | if ($Visual -is [Windows.Window]) {
51 | $Visual.Close()
52 | }
53 | if ($Visual.Parent -is [Windows.Window]) {
54 | $Visual.Close()
55 | }
56 | $Visual.Visibility = "Collapsed"
57 | }
58 | }
59 | `
60 |
61 |
--------------------------------------------------------------------------------
/docs/Code-Correction.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: michael liben
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6441
10 | Published Date: 2016-07-02t14
11 | Archived Date: 2016-07-04t13
12 | ---
13 |
14 | # code correction -
15 |
16 | ## Description
17 |
18 | correction to line 51. each octet pair should be two characters. original code omits leading zeroes in an octet pair. the format expressions should be {”{0
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $escapedGuid = "\" + ((([GUID]$guid).ToByteArray() |% {"{0:x2}" -f $_}) -join '\')
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/Colorize-Subversion-SVN.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: jim palmer
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 894
10 | Published Date:
11 | Archived Date: 2009-02-25t08
12 | ---
13 |
14 | # colorize subversion svn -
15 |
16 | ## Description
17 |
18 | colorize subversion svn stat output.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function ss () {
41 | $c = @{ "A"="Magenta"; "D"="Red"; "C"="Yellow"; "G"="Blue"; "M"="Cyan"; "U"="Green"; "?"="DarkGray"; "!"="DarkRed" }
42 | foreach ( $svno in svn stat ) {
43 | $color = $c[$svno.SubString(0,1).ToUpper()]
44 | if ( $color ) {
45 | write-host $svno -Fore $color
46 | } else {
47 | write-host $svno
48 | }
49 | }
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Convert-ToCHexString.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: bobby thing
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5920
10 | Published Date: 2015-07-07t00
11 | Archived Date: 2015-07-10t13
12 | ---
13 |
14 | # convert-tochexstring -
15 |
16 | ## Description
17 |
18 | 01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,c0,4f,c2,97,eb,\
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `convert-tochexstring`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Convert-ToCHexString
41 | {
42 | param ([String] $str)
43 | $ans = ''
44 | [System.Text.Encoding]::ASCII.GetBytes($str) | % { $ans += "0x{0:X2}, " -f $_ }
45 | return $ans.Trim(' ',',')
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Convert-ToMP3.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: crazydave
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1561
10 | Published Date: 2010-12-27t19
11 | Archived Date: 2017-03-18t07
12 | ---
13 |
14 | # convert-tomp3 -
15 |
16 | ## Description
17 |
18 | this script uses vlc to convert an audio file to mp3 format. it makes the assumption that you have an alias “vlc” that points to the vlc executable.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param([String] $inputPath, [String] $wildcard, [String] $outputPath = $inputPath)
41 |
42 | gci -path $inputPath\$wildcard | % {
43 | $outputFile = Join-Path $outputPath ($_.Name.Replace($_.Extension, '.mp3'))
44 | Get-Process vlc | % { $_.WaitForExit() }
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/ConvertFrom-FahrenheitWi.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lee holmes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.8
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2459
10 | Published Date: 2011-01-17t05
11 | Archived Date: 2016-03-18t23
12 | ---
13 |
14 | # convertfrom-fahrenheitwi -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | param([double] $Fahrenheit)
42 |
43 | Set-StrictMode -Version Latest
44 |
45 | function ConvertFahrenheitToCelsius([double] $fahrenheit)
46 | {
47 | $celsius = $fahrenheit - 32
48 | $celsius = $celsius / 1.8
49 | $celsius
50 | }
51 |
52 | $celsius = ConvertFahrenheitToCelsius $fahrenheit
53 |
54 | "$fahrenheit degrees Fahrenheit is $celsius degrees Celsius."
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/ConvertFrom-Hashtable.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1118
10 | Published Date: 2010-05-20t07
11 | Archived Date: 2017-03-03t08
12 | ---
13 |
14 | # convertfrom-hashtable -
15 |
16 | ## Description
17 |
18 | this script has appeared in many places in many different forms. eg
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `convertfrom-hashtable`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | PARAM([HashTable]$hashtable,[switch]$combine)
41 | BEGIN { $output = New-Object PSObject }
42 | PROCESS {
43 | if($_) {
44 | $hashtable = $_;
45 | if(!$combine) {
46 | $output = New-Object PSObject
47 | }
48 | }
49 | $hashtable.GetEnumerator() |
50 | ForEach-Object { Add-Member -inputObject $output `
51 | -memberType NoteProperty -name $_.Name -value $_.Value }
52 | $output
53 | }
54 | #}
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/ConvertTo-Hex.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: s-1-5-21-2025429
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6847
10 | Published Date: 2017-04-18t09
11 | Archived Date: 2017-04-21t20
12 | ---
13 |
14 | # convertto-hex -
15 |
16 | ## Description
17 |
18 | this scconvertto-hex script will convert a security identifier (sid) in string format to its hexadecimal equivalent. e.g.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param ( [string]$SidString )
41 |
42 | $sid = New-Object system.Security.Principal.SecurityIdentifier $sidstring
43 |
44 | $sidBytes = New-Object byte[] $sid.BinaryLength
45 |
46 | $sid.GetBinaryForm( $sidBytes, 0 )
47 |
48 | $hexArr = $sidBytes | ForEach-Object { $_.ToString("X2") }
49 |
50 | $hexArr -join ''
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Copiar-Arquivos.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: zorion
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5862
10 | Published Date: 2015-05-18t20
11 | Archived Date: 2015-05-22t03
12 | ---
13 |
14 | # copiar-arquivos -
15 |
16 | ## Description
17 |
18 | copy data between folders including a progressbar
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `copy-data`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function copy-data {
41 | param($source, $dest)
42 | $counter = 0
43 | $files = Get-ChildItem $source -Force -Recurse
44 | foreach($file in $files)
45 | {
46 | $status = "Copying file {0} of {1}: {2}" -f $counter, $files.count, $file.name
47 | Write-Progress -Activity "Copyng Files" -Status $status -PercentComplete ($counter/$files.count * 100)
48 | Copy-Item $file.pspath $dest -Force
49 | $counter++
50 | }
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Coping-Files.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: glenn
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5921
10 | Published Date: 2015-07-07t14
11 | Archived Date: 2015-07-10t13
12 | ---
13 |
14 | # coping files ... -
15 |
16 | ## Description
17 |
18 | copy data between folders including a progressbar
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `copy-data`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function copy-data {
41 | param($source, $dest)
42 | $counter = 0
43 | $files = Get-ChildItem $source -Force -Recurse
44 | foreach($file in $files)
45 | {
46 | $status = "Copying file {0} of {1}: {2}" -f $counter, $files.count, $file.name
47 | Write-Progress -Activity "Copying Files" -Status $status -PercentComplete ($counter/$files.count * 100)
48 | Copy-Item $file.pspath $dest -Force
49 | $counter++
50 | }
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Copy-files-to-dated-directory.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5159
10 | Published Date:
11 | Archived Date: 2014-07-01t14
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | copy files to dated directory.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $date = Get-Date -Format "yyyyMMdd"
41 | $source = 'C:\dir'
42 | $destination = "C:\someotherdir\$date\"
43 |
44 | New-Item -ItemType directory -Path $destination
45 | Copy-Item $source "$destination" -Recurse -Force
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Create-VMKernel-on-vDS.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1992
10 | Published Date:
11 | Archived Date: 2010-07-21t21
12 | ---
13 |
14 | # create vmkernel on vds -
15 |
16 | ## Description
17 |
18 | create vmkernel on vds with new-vmhostnetworkadapter vsphere powercli 4.1
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | New-VMHostNetworkAdapter -VMHost $myHost -VirtualSwitch "myVDS"-PortGroup "vdPortGroup"
41 | `
42 |
43 |
--------------------------------------------------------------------------------
/docs/CreateSite_tmp.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: brodobrey
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3628
10 | Published Date: 2012-09-07t06
11 | Archived Date: 2012-09-15t04
12 | ---
13 |
14 | # createsite_tmp.ps1 -
15 |
16 | ## Description
17 |
18 | createsite_tmp.ps1
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $site = Get-SPSite http://spf/
42 | $web = $site.RootWeb
43 |
44 | write-host "template = $templates ; web = $web "
45 |
46 | New-SPWeb -name 'KoKA2' -url http://spf/koka2 -UseParentTopNav -AddToTopNav -Template $templates
47 |
48 |
49 | #" -UseParentTopNav -UniquePermissions
50 |
51 | #>
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Decrypt-Psi-Password.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: jvarga
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3597
10 | Published Date: 2012-08-28t04
11 | Archived Date: 2012-09-05t18
12 | ---
13 |
14 | # decrypt psi password -
15 |
16 | ## Description
17 |
18 | script courtesy of jaykul, i’m just reposting. this script will decode the passwords for all accounts in the psi profile labeled “default”.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `decrypt-psi`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function decrypt-psi ($jid, $pw) {
41 | $OFS = ""; $u = 0;
42 | for($p=0;$p -lt $pw.Length;$p+=4) {
43 | [char]([int]"0x$($pw[$p..$($p+3)])" -bxor [int]$jid[$u++])
44 | }
45 | }
46 |
47 | $accounts = ([xml](cat ~\psidata\profiles\default\accounts.xml))["accounts"]["accounts"]
48 |
49 | foreach($account in ($accounts | gm a[0-9]*)) {
50 | $a = $accounts.$($account.Name)
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Del-TrailingBlank-ISE.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1626
10 | Published Date:
11 | Archived Date: 2010-02-26t12
12 | ---
13 |
14 | # del. trailingblank (ise) -
15 |
16 | ## Description
17 |
18 | this function is intended to be uses as ise add on.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `delete-trailingblanks`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Delete-TrailingBlanks
41 | {
42 | $editor = $psISE.CurrentFile.Editor
43 | $caretLine = $editor.CaretLine
44 |
45 |
46 |
47 |
48 | $editor.Text = $editor.Text -replace '(?m)\s*?$', ''
49 |
50 |
51 | $editor.SetCaretPosition($caretLine, 1)
52 | }
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Delete-Empty-Folders.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: trevor wilson
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5467
10 | Published Date: 2016-09-25t18
11 | Archived Date: 2016-06-06t19
12 | ---
13 |
14 | # delete empty folders -
15 |
16 | ## Description
17 |
18 | this is a script to remove empty folders from a drive. i used it when i had to clear up a shared drive from a former company.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $Drive = Read-Host "Path to Folders"
41 | Write-Host "This will delete all empty folders in this directory!"
42 | $a = Get-ChildItem $drive -recurse | Where-Object {$_.PSIsContainer -eq $True}
43 | $a | Where-Object {($_.GetFiles().Count -lt 1 -and $_.GetDirectories().Count -lt 1)} | Select-Object FullName | ForEach-Object {remove-item $_.fullname -recurse}
44 | Write-Host "All Done!"
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Demo-Confirm.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2298
10 | Published Date:
11 | Archived Date: 2010-10-20t09
12 | ---
13 |
14 | # demo-confirm -
15 |
16 | ## Description
17 |
18 | by way of demonstrating how the -confirm parameter affects $confirmpreference and thus the output of cmdlets called in a script.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-confirmed`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 | High
43 |
44 |
45 |
46 |
47 | High
48 |
49 |
50 | Low
51 |
52 |
53 | None
54 |
55 |
56 |
57 |
58 | Medium
59 |
60 |
61 | Low
62 |
63 |
64 | None
65 | `
66 |
67 |
--------------------------------------------------------------------------------
/docs/Deploying-VM-with-static.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2004
10 | Published Date:
11 | Archived Date: 2010-07-23t17
12 | ---
13 |
14 | # deploying vm with static -
15 |
16 | ## Description
17 |
18 | deploying vm with static ip in 3 lines
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $custSpec = New-OSCustomizationSpec -Type NonPersistent -OSType Windows -OrgName TestOrgName -FullName TestFullName -Workgroup TestWorkgroup
41 | $custSpec | Get-OSCustomizationNicMapping | Set-OSCustomizationNicMapping -IpMode UseStaticIP -IpAddress 10.23.121.228 -SubnetMask 255.255.248.0 -Dns 10.23.108.1 -DefaultGateway 10.23.108.1
42 | New-VM -Name MyDeployedVM -Template $template -VMHost $vmHost -OSCustomizationSpec $custSpec
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/Detect-SCCM-2007.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: sean kearney
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3555
10 | Published Date: 2012-08-01t12
11 | Archived Date: 2012-08-04t23
12 | ---
13 |
14 | # detect sccm 2007 -
15 |
16 | ## Description
17 |
18 | this is a very simple powershell function to test if the sccm 2007 agent is installed on a machine or not.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function global:test-sccmagent {
41 | param($PC)
42 | [boolean]$result=get-wmiobject -Query "Select * from win32_service where Name = 'CcmExec'" -ComputerName $PC
43 | return $result
44 | }
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Determine-capacity-of-RA.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: florian frank
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4564
10 | Published Date: 2015-10-27t22
11 | Archived Date: 2015-10-25t13
12 | ---
13 |
14 | # determine capacity of ra -
15 |
16 | ## Description
17 |
18 | get the capacity of your installed ram with the win32_physicalmemory wmi class.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## class
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | [long]$memory = 0
41 |
42 | Get-WmiObject -Class Win32_PhysicalMemory | ForEach-Object -Process { $memory += $_.Capacity }
43 |
44 | $memory / 1GB
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Dumping-COM.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3317
10 | Published Date: 2013-04-06t06
11 | Archived Date: 2013-09-16t06
12 | ---
13 |
14 | # dumping com -
15 |
16 | ## Description
17 |
18 | this script dumping registred com objects names, sort and write them into a log.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## class
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $arr = @()
41 | $key = "HKLM:\SOFTWARE\Classes\CLSID"
42 |
43 | foreach ($i in (gci $key)) {
44 | $des = $key + "\" + $i.PSChildName + "\ProgID"
45 | Write-Progress "Dumping. Please, standby..." $des
46 |
47 | foreach ($a in (gp -ea 0 $des)."(default)") {
48 | $arr += $a
49 | }
50 | }
51 |
52 | [array]::Sort([array]$arr)
53 | $arr | Out-File -file C:\logs\COMnames.txt -enc UTF8
54 | `
55 |
56 |
--------------------------------------------------------------------------------
/docs/ESXi-scratch-location.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: leon scheltema
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6202
10 | Published Date: 2016-02-05t04
11 | Archived Date: 2016-05-12t10
12 | ---
13 |
14 | # esxi scratch location -
15 |
16 | ## Description
17 |
18 | update custom scratch location esxi 5.1
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $vCenter = Read-Host "Enter ESXi host FQDN"
42 |
43 | Connect-VIServer $vCenter
44 |
45 | $esxcli=get-esxcli -vmhost $vCenter
46 | $esxcli.storage.vmfs.extent.list() | ft volumename,VMFSUUID -autosize
47 |
48 | $VolumeName = Read-Host "Enter Disk VolumeName"
49 |
50 | Get-AdvancedSetting -Entity (Get-VMhost -Name $vCenter) -Name "ScratchConfig.ConfiguredScratchLocation" | Set-AdvancedSetting -Value "/vmfs/volumes/$VolumeName" -Confirm:$False
51 |
52 | Disconnect-VIServer -Confirm:$false
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/EchoTest-cmd.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2110
10 | Published Date:
11 | Archived Date: 2010-09-04t00
12 | ---
13 |
14 | # echotest.cmd -
15 |
16 | ## Description
17 |
18 | a dos cmd script to show how your arguments look to “native” console apps
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | @Echo 00: %0
41 | @Echo 01: %1
42 | @Echo 02: %2
43 | @Echo 03: %3
44 | @Echo 04: %4
45 | @Echo 05: %5
46 | @Echo 06: %6
47 | @Echo 07: %7
48 | @Echo 08: %8
49 | @Echo 09: %9
50 |
51 | @Echo All together, it looked like this to DOS:
52 | @Echo %0 %*
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Edit-RDP.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 675
10 | Published Date:
11 | Archived Date: 2010-08-27t00
12 | ---
13 |
14 | # edit-rdp -
15 |
16 | ## Description
17 |
18 | function/script that opens an rdp file for editing using terminal services client.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | ########################################################################################################################
41 | #
42 | #
43 | #
44 | #
45 | #
46 | #
47 | #
48 | #
49 | #
50 | #
51 | #
52 | #
53 | #
54 | #
55 |
56 | param(
57 | [string]$Path = (throw "A path to a RDP file is required.")
58 | )
59 |
60 | if (Test-Path $path) {
61 | mstsc.exe /edit $path
62 | } else {
63 | throw "Path does not exist."
64 | }
65 | #}
66 | `
67 |
68 |
--------------------------------------------------------------------------------
/docs/Ellipsis.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 477
10 | Published Date: 2008-07-23t23
11 | Archived Date: 2011-11-03t03
12 | ---
13 |
14 | # ellipsis -
15 |
16 | ## Description
17 |
18 | the infamous ellipsis function lets you pick out a single property, rather like using select -expand … except it runs in about 2/3 the time.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | ################################################
41 | ${function:...} = { process { $_.$($args[0]) } }
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/EmailService.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: johnny reel
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.04
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4652
10 | Published Date: 2013-11-27t16
11 | Archived Date: 2013-12-06t18
12 | ---
13 |
14 | # emailservice -
15 |
16 | ## Description
17 |
18 | simple one liner that emails the status of a service(s) to a recipient.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 |
43 | Send-MailMessage -To "user@company.com" -From "sender@company.com" -SmtpServer -Subject " Service Status" -body ((gsv -cn -Name ) | Out-string)
44 |
45 | exit 4
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Empty-working-set.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: amirul
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6808
10 | Published Date: 2017-03-20t23
11 | Archived Date: 2017-03-25t17
12 | ---
13 |
14 | # empty working set -
15 |
16 | ## Description
17 |
18 | pipe filter which empties working set for any received system.diagnostics.process object
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | add-type -Namespace Win32 -Name Psapi -MemberDefinition @"
42 | [DllImport("psapi", SetLastError=true)]
43 | public static extern bool EmptyWorkingSet(IntPtr hProcess);
44 | "@
45 |
46 | filter Reset-WorkingSet {
47 | [Win32.Psapi]::EmptyWorkingSet($_.Handle)
48 | }
49 |
50 | sal trim Reset-WorkingSet
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Enable-PS-Remoting.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: st3v3o
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4382
10 | Published Date: 2016-08-12t02
11 | Archived Date: 2016-02-14t09
12 | ---
13 |
14 | # enable ps remoting -
15 |
16 | ## Description
17 |
18 | enable powershell remoting allowing access for all trusted hosts
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | echo Y | winrm quickconfig
41 |
42 | enable-psremoting -force
43 |
44 | cd wsman:
45 | cd localhost\client
46 | Set-Item TrustedHosts * -force
47 | restart-Service winrm
48 | echo "Complete"
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Exchange-PerfCounters.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: thomas torggler
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4196
10 | Published Date: 2013-06-09t12
11 | Archived Date: 2013-11-27t06
12 | ---
13 |
14 | # exchange perfcounters -
15 |
16 | ## Description
17 |
18 | a quick script to re-create exchange 2013 performance counters, more information check
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Setup
41 | Get-ChildItem "$exInstall\Setup\Perf" | Where-Object {$_.Name -match ".xml"} | Foreach {New-PerfCounters -DefinitionFileName $_.FullName}
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/Execute-SQLCommand.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: dragonmc77
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5962
10 | Published Date: 2016-08-03t19
11 | Archived Date: 2016-05-17t12
12 | ---
13 |
14 | # execute-sqlcommand -
15 |
16 | ## Description
17 |
18 | simple function that executes a command (stored procedure) against an sql database.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `execute-sqlcommand`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $sqlConnection = New-Object System.Data.SqlClient.SqlConnection
42 | $sqlConnection.ConnectionString = "Integrated Security=SSPI;Persist Security Info=False;User ID=ml;Initial Catalog=$Database;Data Source=$Server"
43 |
44 | $Command.Connection = $sqlConnection
45 |
46 | $sqlConnection.Open()
47 | $Result = $Command.ExecuteNonQuery()
48 | $sqlConnection.Close()
49 |
50 | if ($Result -gt 0) {return $TRUE} else {return $FALSE}
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/ExecutePowerShell-cmd.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2447
10 | Published Date:
11 | Archived Date: 2011-01-10t08
12 | ---
13 |
14 | # executepowershell.cmd -
15 |
16 | ## Description
17 |
18 | this is a batch file … with a powershell script inside. it’s my answer to all those “compile your .ps1” solutions that are floating around. why would you do that, when powershell still has to be installed?
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | :: <#
41 | copy %0 %0.ps1
42 | PowerShell.exe -ExecutionPolicy Unrestricted -NoProfile -Command "$ErrorActionPreference = 'SilentlyContinue'; . %0.ps1; Remove-Item %0.ps1"
43 | exit
44 | :: #>
45 | $ErrorActionPreference = 'Continue'
46 |
47 | ls | sort length -desc | select -first 5 | ft
48 | ps | sort ws -desc | select -first 10 | ft
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/FC-WWN-per-vendor.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: leon scheltema
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4893
10 | Published Date: 2015-02-12t10
11 | Archived Date: 2015-05-22t02
12 | ---
13 |
14 | # fc wwn per vendor -
15 |
16 | ## Description
17 |
18 | get’s fc adapter wwn’s listed per vendor of esxi hosts per cluster
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $VC1 = ""
42 | $cluster = ""
43 |
44 | Connect-VIServer "$VC1"
45 |
46 | foreach ($esx in $scope){
47 | Write-Host "Host:", $esx
48 | $hbas = Get-VMHostHba -VMHost $esx -Type FibreChannel
49 | foreach ($hba in $hbas){
50 | $wwpn = "{0:x}" -f $hba.PortWorldWideName
51 | Write-Host `t $hba.Device, "|", $hba.model, "|", "World Wide Port Name:" $wwpn
52 | }}
53 |
54 | Disconnect-VIServer -server "$VC1" -Force -Confirm:$false
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/FTP-ListDirectory.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5934
10 | Published Date: 2016-07-14t18
11 | Archived Date: 2016-06-10t15
12 | ---
13 |
14 | # ftp listdirectory -
15 |
16 | ## Description
17 |
18 | an example showing how to get a file listing via ftp. note
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $cred = Get-Credential
41 |
42 | [System.Net.FtpWebRequest]$request = [System.Net.WebRequest]::Create("ftp://joelbennett.net")
43 | $request.Credentials = $cred
44 |
45 | $response = $request.GetResponse()
46 |
47 | $list = Receive-Stream $response.GetResponseStream()
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/FTP-download.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: stephen price
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3004
10 | Published Date: 2012-10-14t14
11 | Archived Date: 2017-04-01t12
12 | ---
13 |
14 | # ftp download -
15 |
16 | ## Description
17 |
18 | quick hard coded script for uploading a file to an ftp server.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $File = "D:\Dev\somefilename.zip"
41 | $ftp = "ftp://username:password@example.com/pub/incoming/somefilename.zip"
42 |
43 | "ftp url: $ftp"
44 |
45 | $webclient = New-Object System.Net.WebClient
46 | $uri = New-Object System.Uri($ftp)
47 |
48 | "Uploading $File..."
49 |
50 | $webclient.UploadFile($uri, $File)
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/FTP-upload.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: stephen price
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6697
10 | Published Date: 2017-01-18t08
11 | Archived Date: 2017-01-24t08
12 | ---
13 |
14 | # ftp upload -
15 |
16 | ## Description
17 |
18 | quick hard coded script for uploading a file to an ftp server.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $File = "D:\Dev\somefilename.zip"
41 | $ftp = "ftp://username:password@example.com/pub/incoming/somefilename.zip"
42 |
43 | "ftp url: $ftp"
44 |
45 | $webclient = New-Object System.Net.WebClient
46 | $uri = New-Object System.Uri($ftp)
47 |
48 | "Uploading $File..."
49 |
50 | $webclient.UploadFile($uri, $File)
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Find-Command.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3019
10 | Published Date: 2011-10-21t13
11 | Archived Date: 2011-10-23t11
12 | ---
13 |
14 | # find-command -
15 |
16 | ## Description
17 |
18 | because people keep asking questions on irc where the answer seems obvious…
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `find-command`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Find-Command{
41 | param([Parameter($Mandatory=$true)]$question)
42 |
43 | Get-Command -Verb ($question.Split() | Where {Get-Verb $_ }) -Noun $question.Split()
44 | }
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Find-and-Replace-Data.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: danielle
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6747
10 | Published Date: 2017-02-22t18
11 | Archived Date: 2017-05-22t05
12 | ---
13 |
14 | # find and replace data -
15 |
16 | ## Description
17 |
18 | you know unwanted data is in a string within a file, but you don’t know what it is. you need to have it replaced with a scheduled ps1 script.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | cat ./Preamble.xml | findstr Content-ID: > ./Content-ID
42 | $ID = Get-Content ./Content-ID
43 | $ID = $ID.substring(13,15)
44 |
45 | ( Get-Content ./Preamble.xml ) -replace "$ID" , "$STAMP" |
46 | Set-Content ./Preamble.xml
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/First-of-all-this-is-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4130
10 | Published Date:
11 | Archived Date: 2013-05-26t01
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | first of all this is a great script! is there a way to extend the size limit?
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | WARNING: Error occurred while executing.
41 | WARNING: An error occurred while enumerating through a collection: The time limit for this request was exceeded.
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/Force-WSUS-Check.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: st3v3o
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4385
10 | Published Date: 2015-08-12t18
11 | Archived Date: 2015-12-08t19
12 | ---
13 |
14 | # force wsus check -
15 |
16 | ## Description
17 |
18 | remotely force wsus check on servers within your network. powershell remoting must be enabled.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Import-Module ActiveDirectory
42 |
43 | $comps = Get-ADComputer -Filter {operatingsystem -like "*server*"}
44 |
45 | $cred = Get-Credential
46 |
47 | Foreach ($comp in $comps) {
48 |
49 | Invoke-Command -computername $comp.Name -credential $cred { wuauclt.exe /detectnow }
50 | Write-Host Forced WSUS Check-In on $comp.Name
51 |
52 | }
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Get-CalendarWeek.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: holger adam
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1392
10 | Published Date: 2010-10-13t07
11 | Archived Date: 2016-04-22t18
12 | ---
13 |
14 | # get-calendarweek -
15 |
16 | ## Description
17 |
18 | this function calculates the calendar week to a given date. it either takes a given date or retrieves the current date.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-calendarweek`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | function Get-CalendarWeek {
42 | param(
43 | $Date = (Get-Date)
44 | )
45 |
46 | $Culture = [System.Globalization.CultureInfo]::CurrentCulture
47 |
48 | $Culture.Calendar.GetWeekOfYear($Date, $Culture.DateTimeFormat.CalendarWeekRule, $Culture.DateTimeFormat.FirstDayOfWeek)
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Get-ClipboardText.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: matthew sessions
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4980
10 | Published Date: 2015-03-12t21
11 | Archived Date: 2015-01-31t20
12 | ---
13 |
14 | # get-clipboardtext -
15 |
16 | ## Description
17 |
18 | this function retrieves the (unicode) text from the clipboard.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-clipboardtext`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function Get-ClipboardText
41 | {
42 | [CmdletBinding()]
43 | [OutputType([String])]
44 |
45 |
46 | [System.Windows.Forms.Clipboard]::GetText( 'UnicodeText' ) | Write-Output
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Get-Comment.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 3.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4109
10 | Published Date: 2013-04-16t05
11 | Archived Date: 2013-05-09t10
12 | ---
13 |
14 | # get-comment -
15 |
16 | ## Description
17 |
18 | show all the comments from a script, and only the comments.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | <#
42 | .Synopsis
43 | Gets all of the comments from a script
44 | .Description
45 | Uses the PowerShell 3 Parser to figure out what's a comment
46 | #>
47 | [CmdletBinding()]
48 | [String]$Script
49 | )
50 |
51 | if(Test-Path $Script) {
52 | }
53 | $ParseError = $null
54 | $Tokens = $null
55 | $null = [System.Management.Automation.Language.Parser]::ParseInput($Script, [ref]$Tokens, [ref]$ParseError)
56 | $Tokens | ? Kind -eq "Comment" | % Text
57 | `
58 |
59 |
--------------------------------------------------------------------------------
/docs/Get-CompPartitionTable.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: chad miller
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4108
10 | Published Date: 2013-04-15t20
11 | Archived Date: 2013-05-09t11
12 | ---
13 |
14 | # get-comppartitiontable -
15 |
16 | ## Description
17 |
18 | quick script to get compressed or partitioned sql server tables using sqlps provider
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## module
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param($computer,$instance,$database)
41 |
42 | import-module sqlps -disablenamechecking
43 |
44 | $path = "SQLSERVER:\SQL\$($computer)\$($instance)\Databases\$($database)\Tables"
45 | SET-LOCATION $path
46 | get-childitem | where {$_.HasCompressedPartitions -or $_.IsPartitioned} |
47 | select @{n='ServerInstance';e={"$computer\$instance"}},@{n='Database';e={$database}}, name, HasCompressedPartitions, IsPartitioned
48 | cd $home
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Get-Cpl.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2397
10 | Published Date:
11 | Archived Date: 2010-12-10t22
12 | ---
13 |
14 | # get-cpl -
15 |
16 | ## Description
17 |
18 | a function to retrieve available control panel applets along with a description.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-cpl`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-Cpl {
41 | dir $env:windir\system32 | Where-Object {$_.Extension -eq ".cpl"} | Select-Object Name,@{Name="Description";Expression={$_.VersionInfo.FileDescription}} | Sort-Object Description | Format-Table -AutoSize
42 | }
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/Get-DCsFromDNS.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2042
10 | Published Date:
11 | Archived Date: 2010-08-06t18
12 | ---
13 |
14 | # get-dcsfromdns -
15 |
16 | ## Description
17 |
18 | a function that allows me to query dns on my internal servers for domain controllers
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-dcsfromdns`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-DCsFromDNS($DomainName){
41 | $DCs = get-dns _ldap._tcp.dc._msdcs.$DomainName -Type srv | select -ExpandProperty RecordsRR |
42 | %{$_.record.target} | select -Unique | sort | %{
43 | get-dns $_ | select -ExpandProperty Answers | select Name,@{n='IPAddress';e={$_.Record}}}
44 | return $DCs
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Get-FirewallStatus.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: rfoust
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 836
10 | Published Date: 2009-01-31t17
11 | Archived Date: 2016-03-07t22
12 | ---
13 |
14 | # get-firewallstatus -
15 |
16 | ## Description
17 |
18 | returns $true if the windows firewall is enabled, $false if it is disabled.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | filter global:get-firewallstatus ([string]$computer = $env:computername)
41 | {
42 | if ($_) { $computer = $_ }
43 |
44 | $HKLM = 2147483650
45 |
46 | $reg = get-wmiobject -list -namespace root\default -computer $computer | where-object { $_.name -eq "StdRegProv" }
47 | $firewallEnabled = $reg.GetDwordValue($HKLM, "System\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile","EnableFirewall")
48 |
49 | [bool]($firewallEnabled.uValue)
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Get-FirewallStatus2.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 838
10 | Published Date:
11 | Archived Date: 2009-02-04t18
12 | ---
13 |
14 | # get-firewallstatus2 -
15 |
16 | ## Description
17 |
18 | an alternate method of querying the registry to return the firewall status (returns $true or $false). this one does not use wmi.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | filter global:get-firewallstatus2 ([string]$computer = $env:computername)
41 | {
42 | if ($_) { $computer = $_ }
43 |
44 | $reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine",$computer)
45 |
46 | $firewallEnabled = $reg.OpenSubKey("System\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile").GetValue("EnableFirewall")
47 |
48 | [bool]$firewallEnabled
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Get-FolderSize.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: piere woehl
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5647
10 | Published Date: 2016-12-15t19
11 | Archived Date: 2016-09-07t04
12 | ---
13 |
14 | # get-foldersize -
15 |
16 | ## Description
17 |
18 | a little script for $profile file to add support for get-foldersize.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-foldersize`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-FolderSize {
41 | $location = $args[0]
42 | Write-Host "Directory to Scan:"$location
43 | $value = "{0:N2}" -f ((Get-ChildItem -recurse $location | Measure-Object -property length -sum).Sum / 1MB)
44 | Write-Host "Used Storage for Directory:"$value" MB"
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Get-FreeRAM.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2962
10 | Published Date: 2011-09-21t09
11 | Archived Date: 2011-11-05t18
12 | ---
13 |
14 | # get-freeram -
15 |
16 | ## Description
17 |
18 | get the free ram from a system
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-freeram`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-FreeRam {
41 | #.Synopsis
42 | #.Parameter ComputerName
43 | #.Example
44 | #
45 | [CmdletBinding()]
46 | param(
47 | [Parameter(ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)]
48 | [string[]]$ComputerName='localhost'
49 | )
50 | process {
51 | Get-WmiObject -ComputerName $ComputerName Win32_OperatingSystem |
52 | Select-Object -Property @{name="Computer";expression={$_.__SERVER}}, FreePhysicalMemory
53 | }
54 | }
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/Get-GPOLinkedOrganizationalUnits.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6109
10 | Published Date:
11 | Archived Date: 2016-03-18t21
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | function to find organizational units linked to a given gpo
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-gpolinkedorganizationalunits`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | .EXAMPLE
42 | Get-GPO -Name TestOU | Get-GPOLinkedOrganizationalUnits
43 | #>
44 | Function Get-GPOLinkedOrganizationalUnits {
45 | param(
46 | [Parameter(ValueFromPipeline=$true, Mandatory=$true)][Microsoft.GroupPolicy.Gpo]$GPO
47 | )
48 |
49 | Get-ADOrganizationalUnit -Filter { LinkedGroupPolicyObjects -eq $gpo.Path }
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Get-Gender.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 926
10 | Published Date:
11 | Archived Date: 2009-03-15t01
12 | ---
13 |
14 | # get-gender.ps1 -
15 |
16 | ## Description
17 |
18 | this script serves three purposes, including the obvious
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 |
43 |
44 | if($name.Length -lt 2) { throw "You need at least two letters in the name" }
45 | $name = "$($name[0])".ToUpper() + $name.SubString(1).ToLower()
46 |
47 | switch(
48 | Invoke-Http GET "http://www.babynameaddicts.com/cgi-bin/search.pl" @{
49 | gender="ALL";searchfield="Names";origins="ALL";searchtype="matching";searchtext=$name
50 | } | Receive-Http Text "//font[b/font/text()='$name']/@color" )
51 | {
52 | "fucshia" { "Femenine" }
53 | }
54 | }
55 |
56 |
57 | `
58 |
59 |
--------------------------------------------------------------------------------
/docs/Get-GrowthRate.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: halr9000
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 704
10 | Published Date:
11 | Archived Date: 2009-01-06t13
12 | ---
13 |
14 | # get-growthrate -
15 |
16 | ## Description
17 |
18 | calculates percentage growth rate given a starting value, ending value, and number of periods in the range. stahler thx!
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-growthrate`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-GrowthRate {
41 | param( $Start, $End, $Period )
42 | $rate = [math]::Abs( [math]::Pow( ( $End / $Start ),( 1 / $Period - 1 ) ) - 1 )
43 | "{0:P}" -f $rate
44 | }
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Get-HarddriveModel.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5285
10 | Published Date: 2014-07-05t13
11 | Archived Date: 2014-07-08t16
12 | ---
13 |
14 | # get-harddrivemodel -
15 |
16 | ## Description
17 |
18 | retrieves harddrive model name without wmi
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-harddrivemodel`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-HarddriveModel {
41 | <#
42 | .NOTES
43 | Author: greg zakharov
44 | #>
45 | (gp (
46 | Join-Path $key (
47 | 'Enum\' + (gp (Join-Path ($key = 'HKLM:\SYSTEM\CurrentControlSet') 'Services\Disk\Enum')).('0')
48 | )
49 | )
50 | ).FriendlyName
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Get-Hostname.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: tst-wms-print-00
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6211
10 | Published Date: 2016-02-10t20
11 | Archived Date: 2016-04-25t18
12 | ---
13 |
14 | # get-hostname -
15 |
16 | ## Description
17 |
18 | print the hostname of the system. complete with v2 comment-based help, but works fine on v1.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | param (
42 | [switch]$Short = $true,
43 | [switch]$Domain = $false,
44 | [switch]$FQDN = $false
45 | )
46 |
47 | $ipProperties = [System.Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties()
48 | if ( $FQDN ) {
49 | return "{0}.{1}" -f $ipProperties.HostName, $ipProperties.DomainName
50 | }
51 | if ( $Domain ) {
52 | return $ipProperties.DomainName
53 | }
54 | if ( $Short ) {
55 | return $ipProperties.HostName
56 | }
57 | `
58 |
59 |
--------------------------------------------------------------------------------
/docs/Get-HtmlHelp.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: brandon murphy
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3918
10 | Published Date: 2013-01-26t20
11 | Archived Date: 2013-07-05t15
12 | ---
13 |
14 | # get-htmlhelp -
15 |
16 | ## Description
17 |
18 | hello,
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Hello,
41 |
42 | I wanted to reach out to inquire about the possibility of advertising on your blog in the form of sponsored guest posts.
43 |
44 | Either I can have content written or you can write content that is relevant to your audience and helps to promote our client's service. We then pay for that post and the opportunity to have exposure to your readers.
45 |
46 | If this is something you can do, please email me.
47 |
48 | Thank you,
49 | -Brandon Murphy
50 | brandon@submitdigital.com
51 | www.SubmitDigital.com
52 |
53 | http://huddledmasses.org
54 | `
55 |
56 |
--------------------------------------------------------------------------------
/docs/Get-HttpResponseUri.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1722
10 | Published Date:
11 | Archived Date: 2010-03-31t09
12 | ---
13 |
14 | # get-httpresponseuri -
15 |
16 | ## Description
17 |
18 | fetch the head for a url and return the responseuri. good for service-independent short-url lengthening ;)
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-httpresponseuri`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-HttpResponseUri {
41 | #.Synopsis
42 | #.Description
43 | #.Parameter ShortUrl
44 | PARAM(
45 | [Parameter(Position=0,Mandatory=$true,ValueFromPipeline=$true)]
46 | [Alias("Uri","Url")]
47 | [string]$ShortUrl
48 | )
49 | $req = [System.Net.HttpWebRequest]::Create($ShortUrl)
50 | $req.Method = "HEAD"
51 | $response = $req.GetResponse()
52 | Write-Output $response.ResponseUri
53 | }
54 | `
55 |
56 |
--------------------------------------------------------------------------------
/docs/Get-LocalGroupMembers.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: carter shanklin
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6581
10 | Published Date: 2016-10-17t14
11 | Archived Date: 2016-12-22t03
12 | ---
13 |
14 | # get-localgroupmembers -
15 |
16 | ## Description
17 |
18 | ru_dax_erp_read
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-localgroupmembers`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-LocalGroupMembers {
41 | param($groupname)
42 |
43 | $pattern = "*Name=`"$groupname`""
44 | $groupusers = gwmi Win32_GroupUser | Where { $_.GroupComponent -like $pattern }
45 |
46 | foreach ($user in $groupusers) {
47 | if ($user.PartComponent -match 'Name="([^"]+)') {
48 | Write-Output $matches[1]
49 | }
50 | }
51 | }
52 |
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Get-MailAttachment.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: george mauer
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2578
10 | Published Date: 2012-03-24t14
11 | Archived Date: 2017-03-01t06
12 | ---
13 |
14 | # get-mailattachment.ps1 -
15 |
16 | ## Description
17 |
18 | get an attachment from an exchange e-mail.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param([Microsoft.Exchange.WebServices.Data.FileAttachment]$attachment)
41 | "Downloading Attachment"
42 | $attachment.Load()
43 | "Done"
44 | $path = "C:\temp\"+$attachment.Name
45 | "Writing to $path"
46 | set-content -value $mm[1].Attachments[0].Content -enc byte -path $path
47 | "Done"
48 | ii $path
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Get-MyDomain.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 731
10 | Published Date:
11 | Archived Date: 2008-12-18t09
12 | ---
13 |
14 | # get-mydomain -
15 |
16 | ## Description
17 |
18 | get-mydomain retrieves the current ip of the user (or, the first if there are multiple active cards) then performs a dns lookup to retrieve the domain. if it is unable to reverse it, it displays unknown
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-mydomain`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function Get-MyDomain() {
41 | $IP = ((Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName . | Select-Object -Property IPAddress -First 1).IPAddress[0])
42 | trap {
43 | return "Unknown:$($IP)"
44 | }
45 | return [System.Net.DNS]::GetHostByAddress($IP).HostName
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Get-NetView.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: nathan hartley
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 882
10 | Published Date: 2009-02-19t15
11 | Archived Date: 2017-04-04t05
12 | ---
13 |
14 | # get-netview -
15 |
16 | ## Description
17 |
18 | a one liner that parses the output of net.exe’s view command. net.exe view displays a list of computers in your current domain by default, to display another domain change it to read net.exe view /domain .
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-netview`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-NetView {
41 | switch -regex (NET.EXE VIEW) { "^\\\\(?\S+)\s+" {$matches.Name}}
42 | }
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/Get-PSVersion.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: powershell jedi
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 959
10 | Published Date: 2009-03-17t05
11 | Archived Date: 2015-05-04t21
12 | ---
13 |
14 | # get-psversion -
15 |
16 | ## Description
17 |
18 | simple function to get powershell version
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-psversion`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Set-Alias Ver Get-PSVersion
41 | function Get-PSVersion
42 | {
43 | [string]$Major = ($PSVersionTable).PSVersion.Major
44 | [string]$Minor = ($PSVersionTable).PSVersion.Minor
45 | [string]$Out = $Major + '.' + $Minor
46 | Write-Output $Out
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Get-Process-eq-PSList.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4028
10 | Published Date: 2013-03-18t17
11 | Archived Date: 2013-03-21t06
12 | ---
13 |
14 | # get-process -eq pslist -
15 |
16 | ## Description
17 |
18 | you can sort get-process cmdlet output in pslist style, of course if you has administrator privileges
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | ps | % -b {$arr = @()} -p {
41 | $str = "" | select Name, PID, Time
42 | $str.Name = $_.ProcessName
43 | $str.PID = $_.Id
44 | $str.Time = $(try {$_.StartTime} catch {return [DateTime]::MinValue})
45 | $arr += $str
46 | } -end {$arr | sort Time | ft -a}
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Get-SNMPHost.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1132
10 | Published Date:
11 | Archived Date: 2009-05-31t07
12 | ---
13 |
14 | # get-snmphost.ps1 -
15 |
16 | ## Description
17 |
18 | gets the vmhostsnmp object for vmware vi toolkit consumption
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Param($VC,$ESXCreds=(Get-Credential))
41 |
42 | Write-Host "Connecting to VC to get ESX Hosts"
43 | Connect-VIServer $VC | out-null
44 |
45 | $ESXHosts = Get-VMHost
46 |
47 | foreach($esxhost in $ESXHosts)
48 | {
49 | Write-Host " Connecting to $esxhost"
50 | Connect-VIServer $esxhost.name -cred $ESXCreds | out-null
51 | $SNMPHost = Get-VMHostSnmp
52 | $SNMPHost | Add-Member -MemberType NoteProperty -Name ESXHost -Value $esxhost.name
53 | $SNMPHost
54 | }
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/Get-ScriptDirectory.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: andy arismendi
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2887
10 | Published Date: 2012-08-03t09
11 | Archived Date: 2015-05-08t16
12 | ---
13 |
14 | # get-scriptdirectory -
15 |
16 | ## Description
17 |
18 | returns the directory that current script is running in.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-scriptdirectory`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-ScriptDirectory {
41 | $invocation = (Get-Variable MyInvocation -Scope 1).Value
42 | $script = [IO.FileInfo] $invocation.MyCommand.Path
43 | if ([IO.File]::Exists($script)) {
44 | Return (Split-Path $script.Fullname)
45 | } else {
46 | return $null
47 | }
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Get-StaticMethodDefin.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: steven murawski
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 968
10 | Published Date: 2011-03-20t05
11 | Archived Date: 2011-05-04t04
12 | ---
13 |
14 | # get-staticmethoddefin -
15 |
16 | ## Description
17 |
18 | helper function to list the definitions of static methods
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-staticmethoddefinition`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 | function Get-StaticMethodDefinition()
43 | {
44 | param ([string[]]$Method, [Type]$Type=$null)
45 | BEGIN
46 | {
47 | if ($Type -ne $null)
48 | {
49 | $Type | Get-StaticMethodDefinition $Method
50 | }
51 | }
52 |
53 | PROCESS
54 | {
55 | if ($_ -ne $null)
56 | {
57 | $_ | Get-Member -Name $Method -Static -MemberType Method | ForEach-Object {$_.Definition -replace '\), ', "), `n"}
58 | }
59 | }
60 | }
61 | `
62 |
63 |
--------------------------------------------------------------------------------
/docs/Get-Stock-Quotes.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: carter shanklin
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 752
10 | Published Date: 2009-12-27t00
11 | Archived Date: 2015-05-05t05
12 | ---
13 |
14 | # get stock quotes -
15 |
16 | ## Description
17 |
18 | get-stockquotes gives a very easy way to get stock quotes using powershell ctp3’s new web services capabilities.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-stockquote`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-StockQuote {
41 | param($symbols)
42 |
43 | process {
44 | $s = new-webserviceproxy -uri http://www.webservicex.net/stockquote.asmx
45 |
46 | foreach ($symbol in $symbols) {
47 | $result = [xml]$s.GetQuote($symbol)
48 | $result.StockQuotes.Stock
49 | }
50 | }
51 | }
52 |
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Get-StringRange.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: halr9000
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1216
10 | Published Date:
11 | Archived Date: 2009-10-25t10
12 | ---
13 |
14 | # get-stringrange -
15 |
16 | ## Description
17 |
18 | works like the integer range operator “..”, but for characters.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-charrange`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-CharRange ( [char]$Start, [char]$End ) {
41 | [char[]]($Start..$End)
42 | }
43 |
44 | function Get-LetterRange ( [char]$Start, [char]$End, [string]$charset = "BasicLatin" ) {
45 | [char[]]($Start..$End) | Where { $_ -match "(?=\p{Is$charset})\p{L}" }
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Get-Time-Between-Dates.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: dan in philly
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 6889
10 | Published Date: 2017-05-08t04
11 | Archived Date: 2017-05-13t18
12 | ---
13 |
14 | # get time between dates -
15 |
16 | ## Description
17 |
18 | provide a begin and end time frame (mm dd yyyy) and this will calculate the years, months and days between the two dates. this is not 100% accurate but it was close enough for what i was trying to do. someone with better math skills should be able to improve the accuracy.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-AppxProvisionedPackage -Online | Where {$_.PackageName -notlike �*store*� -and $_.PackageName -notlike �*calc*�} | Remove-AppxProvisionedPackage -Online
41 | Get-AppxPackage | Where {$_.PackageFullName -notlike �*store*� -and $_.PackageFullName -notlike �*calc*�} | Remove-AppxPackage
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/Get-Tomorrow.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lee holmes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2166
10 | Published Date: 2011-09-09t21
11 | Archived Date: 2016-03-18t21
12 | ---
13 |
14 | # get-tomorrow.ps1 -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | ##############################################################################
41 | ##
42 | ##
43 | ##
44 | ##############################################################################
45 |
46 | Set-StrictMode -Version Latest
47 |
48 | function GetDate
49 | {
50 | Get-Date
51 | }
52 |
53 | $tomorrow = (GetDate).AddDays(1)
54 | $tomorrow
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/Get-UNCPath.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: dragonmc77
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5657
10 | Published Date: 2015-12-30t18
11 | Archived Date: 2015-11-24t08
12 | ---
13 |
14 | # get-uncpath -
15 |
16 | ## Description
17 |
18 | simple function that returns the unc path (administrative share) of a local path.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-uncpath`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-UNCPath {param( [string]$HostName,
41 | [string]$LocalPath)
42 | $NewPath = $LocalPath -replace(":","$")
43 | if ($NewPath.EndsWith("\")) {
44 | $NewPath = [Text.RegularExpressions.Regex]::Replace($NewPath, "\\$", "")
45 | }
46 | "\\$HostName\$NewPath"
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Get-UserWithManyGroups.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1385
10 | Published Date:
11 | Archived Date: 2010-07-17t01
12 | ---
13 |
14 | # get-userwithmanygroups -
15 |
16 | ## Description
17 |
18 | lists active directory user accounts which are members of too many groups, and can thus cause token bloat issues
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $limit = 75
42 | Get-QADUser -SizeLimit 0 -DontUseDefaultIncludedProperties |
43 | ForEach-Object {
44 | $groups = Get-QADGroup -ContainsIndirectMember $_.DN -SizeLimit $limit `
45 | -DontUseDefaultIncludedProperties -WarningAction SilentlyContinue
46 | if ($groups.Count -ge $limit) { $_ }
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Get-VMCreationReport.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1679
10 | Published Date:
11 | Archived Date: 2010-03-06t09
12 | ---
13 |
14 | # get-vmcreationreport -
15 |
16 | ## Description
17 |
18 | produces a report of the number of and names of vms created broken down by month and year.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | `get-vmcreationreport`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-VMCreationReport {
41 | Get-VM | Group {
42 | if ($_.CustomFields["CreatedOn"] -as [DateTime] -ne $null) {
43 | "{0:Y}" -f [DateTime]$_.CustomFields["CreatedOn"]
44 | } else {
45 | "Unknown"
46 | }
47 | }
48 | }
49 |
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Get-WhoisAbuse.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4793
10 | Published Date:
11 | Archived Date: 2015-03-23t19
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | a function to return the abuse email address from arin.net.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-whoisabuse`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function get-whoisabuse ([string]$ipaddress)
41 | {
42 |
43 | [xml]$a = (Invoke-WebRequest -Uri "http://whois.arin.net/rest/ip/$ip" -ContentType "text/xml").content
44 |
45 | [xml]$pocs = (Invoke-WebRequest -Uri ("http://whois.arin.net/rest/net/" + $a.net.handle + "/pocs") -ContentType "text/xml").content
46 |
47 |
48 | [array]$result = $abuse.poc.emails.email
49 |
50 | $result
51 |
52 | }
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Get-WordOutline.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 610
10 | Published Date:
11 | Archived Date: 2008-09-29t01
12 | ---
13 |
14 | # get-wordoutline -
15 |
16 | ## Description
17 |
18 | adapted from code by kiron news
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-wordoutline`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-WordOutline ( $Path, [int]$MaxDepth = 9 ) {
41 | if ( $Path -is [System.IO.FileInfo] ) { $Path = $_.FullName }
42 | $word = New-Object -comObject word.application
43 | $document = $wordd.documents.open( $path )
44 | $outline = $document.paragraphs | Where-Object {
45 | $_.outlineLevel -le $MaxDepth
46 | } | ForEach-Object {
47 | $n = ($_.outlineLevel - 1) * 2
48 | ' ' * $n + ($_.range.text -replace '\u000d$')
49 | }
50 | Write-Output $outline
51 | $document.close( [ref]$false )
52 | $word.quit()
53 | }
54 | `
55 |
56 |
--------------------------------------------------------------------------------
/docs/HP_Plink_ISO.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: david
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3212
10 | Published Date: 2012-02-08t11
11 | Archived Date: 2012-02-13t11
12 | ---
13 |
14 | # hp_plink_iso -
15 |
16 | ## Description
17 |
18 | plink to map iso on ilo
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $plink = plink -ssh Administrator@$ILOIP -pw $PSWD -auto_store_key_in_cache "set /map1/oemhp_vm1/cddr1 oemhp_image=http://IPADDRESS/ISO.iso"
41 | $plink = plink -ssh Administrator@$ILOIP -pw $PSWD -auto_store_key_in_cache "set /map1/oemhp_vm1/cddr1 oemhp_boot=connect"
42 | $plink = plink -ssh Administrator@$ILOIP -pw $PSWD -auto_store_key_in_cache "set /map1/oemhp_vm1/cddr1 oemhp_boot=once"
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/Hash-Checker-On-One-Line.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 988
10 | Published Date: 2009-04-01t11
11 | Archived Date: 2016-05-17t14
12 | ---
13 |
14 | # hash checker on one line -
15 |
16 | ## Description
17 |
18 | check and md5 or sha1 hash in a “single line” of powershell.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | &{
41 | PARAM($FileName,$HashFileName)
42 | ((Get-Content $HashFileName) -match $FileName)[0].split(" ")[0] -eq
43 | [string]::Join("", (
44 | [Security.Cryptography.HashAlgorithm]::Create(
45 | ([IO.Path]::GetExtension($HashFileName).Substring(1).ToUpper())
46 | ).ComputeHash(
47 | [IO.File]::ReadAllBytes( (Convert-Path $FileName)
48 | )
49 | ) | ForEach { "{0:x2}" -f $_ }))
50 | } npp.5.3.1.Installer.exe npp.5.3.1.release.md5
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Hash-efficiency-example.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: battlechicken
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6283
10 | Published Date: 2016-04-06t23
11 | Archived Date: 2016-11-18t17
12 | ---
13 |
14 | # hash efficiency example -
15 |
16 | ## Description
17 |
18 | tldr
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $rng = 10000
41 | (Measure-Command {
42 | $hash = @{}
43 | foreach ($a in 1..$rng){
44 | $hash[$a] = $a
45 | }
46 | }).totalmilliseconds
47 |
48 | (Measure-Command {
49 | $hash = @{}
50 | foreach ($a in 1..$rng){
51 | $hash.$a = $a
52 | }
53 | }).TotalMilliseconds
54 |
55 | (Measure-Command {
56 | $hash = @{}
57 | foreach ($a in 1..$rng){
58 | $hash.add($a, $a)
59 | }
60 | }).TotalMilliseconds
61 | `
62 |
63 |
--------------------------------------------------------------------------------
/docs/IP.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5063
10 | Published Date: 2014-04-08t11
11 | Archived Date: 2014-04-13t13
12 | ---
13 |
14 | # ip -
15 |
16 | ## Description
17 |
18 |
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | #
42 | #
43 | #>
44 | gp HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\* | % {if (($ip = $_.DhcpIPAddress) -ne '0.0.0.0') {$ip}}
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Import-UniqueModule.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2303
10 | Published Date:
11 | Archived Date: 2010-10-20t09
12 | ---
13 |
14 | # import-uniquemodule -
15 |
16 | ## Description
17 |
18 | an attempt to resolve namespace clashes without overwriting functions …
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `import-uniquemodule`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Import-UniqueModule {
41 |
42 | param([Parameter(Mandatory=$true)][String]$ModuleName)
43 |
44 | $unique = [guid]::NewGuid().Guid -replace "-"
45 | Import-Module $ModuleName -Prefix $unique
46 | Get-Command -Module $ModuleName |
47 | New-Alias -Name {$_.Name -replace $unique} -Value { "{0}/{1}" -f $_.ModuleName, $_.name }
48 |
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Install-Bginfo.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: chad miller
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5525
10 | Published Date: 2015-10-19t20
11 | Archived Date: 2015-09-19t14
12 | ---
13 |
14 | # install-bginfo.ps1 -
15 |
16 | ## Description
17 |
18 | install and run bginfo at startup using registry method
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | if (Test-Path "C:\WINDOWS\system32\bginfo")
42 | { remove-item -path "C:\WINDOWS\system32\bginfo" -Recurse }
43 |
44 | copy-item \\Z001\d$\sw\bginfo -Destination C:\Windows\system32 -Recurse
45 |
46 | Set-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -name "BgInfo" -value "C:\WINDOWS\system32\bginfo\Bginfo.exe C:\WINDOWS\system32\bginfo\bginfo.bgi /TIMER:0 /NOLICPROMPT"
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Install-TempFont.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6482
10 | Published Date: 2016-08-20t03
11 | Archived Date: 2016-08-22t10
12 | ---
13 |
14 | # install-tempfont.ps1 -
15 |
16 | ## Description
17 |
18 | temporarily (until restart) makes a font available without needing to install it (and thus, without need for admin rights).
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | add-type -name Session -namespace "" -member @"
41 | [DllImport("gdi32.dll")]
42 | public static extern int AddFontResource(string filePath);
43 | "@
44 |
45 | foreach($font in Get-ChildItem -Recurse -Include *.ttf, *.otg) { [Session]::AddFontResource($font.FullName) }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Invert-MouseWheel.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6734
10 | Published Date: 2017-02-15t06
11 | Archived Date: 2017-02-18t06
12 | ---
13 |
14 | # invert-mousewheel -
15 |
16 | ## Description
17 |
18 | inverts the mouse wheel scrolling in windows (to match the way it works in os x)
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 |
41 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/Invoke-AdvancedFunction.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lee holmes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2174
10 | Published Date: 2011-09-09t21
11 | Archived Date: 2016-05-17t10
12 | ---
13 |
14 | # invoke-advancedfunction. -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param(
41 | [Parameter(Mandatory = $true)]
42 | [ScriptBlock] $Scriptblock
43 | )
44 |
45 | & $scriptblock
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Invoke-LocalizedScript-p.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lee holmes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2181
10 | Published Date: 2011-09-09t21
11 | Archived Date: 2016-05-17t17
12 | ---
13 |
14 | # invoke-localizedscript.p -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Set-StrictMode -Version Latest
41 |
42 | $messages = DATA {
43 | @{
44 | Greeting = "Hello, {0}"
45 | Goodbye = "So long."
46 | }
47 | }
48 |
49 | Import-LocalizedData messages -ErrorAction SilentlyContinue
50 |
51 | $messages.Greeting -f "World"
52 | $messages.Goodbye
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/Invoke-RestMethod-example.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6094
10 | Published Date:
11 | Archived Date: 2016-03-18t23
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | invoke-restmethod example
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $headers = @{
42 | 'Content-Type' = "application/x-www-form-urlencoded"
43 | 'Accept' = "application/json"
44 | }
45 |
46 | $response = Invoke-RestMethod -Uri $uri -Method POST -Header $headers -Credentail (Get-Credential)
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Invoke-Sqlcmd2-Cannot-process-argument-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4138
10 | Published Date:
11 | Archived Date: 2013-05-07t07
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | invoke-sqlcmd2
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Invoke-Sqlcmd2 : Cannot process argument transformation on parameter 'ConnectionString'. Cannot convert the "System.Col
41 | lections.Hashtable" value of type "System.Collections.Hashtable" to type "System.Data.SqlClient.SqlConnectionStringBuil
42 | der".
43 | At C:\Users\1\Desktop\1.ps1:64 char:39
44 | + Invoke-Sqlcmd2 -ConnectionString <<<< $Connection -Query $Query
45 | + CategoryInfo : InvalidData: (:) [Invoke-Sqlcmd2], ParameterBindin...mationException
46 | + FullyQualifiedErrorId : ParameterArgumentTransformationError,Invoke-Sqlcmd2
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Is-Admin.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: skourlatov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5271
10 | Published Date: 2015-07-01t09
11 | Archived Date: 2015-01-31t20
12 | ---
13 |
14 | # is-admin -
15 |
16 | ## Description
17 |
18 | verify user is administrator
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `is-admin`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function Is-Admin
41 | {
42 | $principal = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()
43 | $role = [Security.Principal.WindowsBuiltInRole]::Administrator
44 | return $principal.IsInRole($role)
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Keylogger.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6125
10 | Published Date: 2016-12-01t13
11 | Archived Date: 2016-03-18t23
12 | ---
13 |
14 | # keylogger -
15 |
16 | ## Description
17 |
18 | example of elementary keylogger.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | [String]$buff = ""
41 |
42 | while($true) {
43 | [Console]::ReadKey("`r") | % {
44 | if ($_.Key -eq 'Enter') {break}
45 | if ([Char]::IsLetterOrDigit($_.KeyChar) -or [Char]::IsWhiteSpace($_.KeyChar) -or`
46 | [Char]::IsPunctuation($_.KeyChar) -or [Char]::IsSymbol($_.KeyChar)) {
47 | $buff += $_.KeyChar
48 | Write-Host $_.KeyChar -no
49 | }
50 | }
51 | }
52 | ""
53 |
54 | if (-not [String]::IsNullOrEmpty($buff)) {
55 | Out-File ($pwd.Path + '\keylogger.log') -in $buff -enc ASCII -app -for
56 | }
57 | `
58 |
59 |
--------------------------------------------------------------------------------
/docs/LetterDiamondOneLiner-v4.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1044
10 | Published Date:
11 | Archived Date: 2009-04-22t21
12 | ---
13 |
14 | # letterdiamondoneliner v4 -
15 |
16 | ## Description
17 |
18 | down to a two-statement sciptblock.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | &{($r=,(' '*($p=[char]$args[0]-($s=65))+[char]$s)+($p..1|%{"{0,$_} {1}{0}"-f[char]++$s,(' '*$f++)}));$r[-2..-99]}J
41 | `
42 |
43 |
--------------------------------------------------------------------------------
/docs/LetterDiamondOneliner-v2.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: robert robelo
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1041
10 | Published Date:
11 | Archived Date: 2009-04-22t08
12 | ---
13 |
14 | # letterdiamondoneliner v2 -
15 |
16 | ## Description
17 |
18 | @karl
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | &{param([char]$c)[int]$s=65;$p=$c-$s;$r=,(' '*$p+[char]$s);$r+=@(do{"{0,$p} {1}{0}"-f([char]++$s),(' '*$f++)}until(!--$p));$r;$r[-2..-99]}Z
41 |
42 | &{param([char]$c)$p=$c-($s=65);$r=,(' '*$p+[char]$s);do{$r+="{0,$p} {1}{0}"-f([char]++$s),(' '*$f++)}until(!--$p);$r;$r[-2..-99]}J
43 |
44 | &{$r=,(' '*($p=[char]$args[0]-($s=65))+[char]$s);do{$r+="{0,$p} {1}{0}"-f[char]++$s,(' '*$f++)}until(!--$p);$r;$r[-2..-99]}J
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/LetterDiamondOneliner-v3.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1040
10 | Published Date:
11 | Archived Date: 2009-04-23t15
12 | ---
13 |
14 | # letterdiamondoneliner v3 -
15 |
16 | ## Description
17 |
18 | @karl
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | &{param([char]$c)[int]$s=65;$p=$c-$s;$r=,(' '*$p+[char]$s);$r+=@(do{"{0,$p} {1}{0}"-f([char]++$s),(' '*$f++)}until(!--$p));$r;$r[-2..-99]}Z
41 |
42 | &{param([char]$c)$p=$c-($s=65);$r=,(' '*$p+[char]$s);do{$r+="{0,$p} {1}{0}"-f([char]++$s),(' '*$f++)}until(!--$p);$r;$r[-2..-99]}J
43 |
44 | &{$p=[char]$args[0]-($s=65);$r=,(' '*$p+[char]$s);do{$r+="{0,$p} {1}{0}"-f([char]++$s),(' '*$f++)}until(!--$p);$r;$r[-2..-99]}J
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/LibraryInvocation.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lee holmes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2192
10 | Published Date: 2011-09-09t21
11 | Archived Date: 2016-03-19t00
12 | ---
13 |
14 | # libraryinvocation.ps1 -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | `get-scriptname`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Set-StrictMode -Version Latest
42 |
43 |
44 | function Get-ScriptName
45 | {
46 | $myInvocation.ScriptName
47 | }
48 |
49 | function Get-ScriptPath
50 | {
51 | Split-Path $myInvocation.ScriptName
52 | }
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/LibraryProperties.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lee holmes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2194
10 | Published Date: 2011-09-09t21
11 | Archived Date: 2016-03-18t22
12 | ---
13 |
14 | # libraryproperties.ps1 -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | ##############################################################################
41 | ##
42 | ##
43 | ##############################################################################
44 |
45 | filter Get-PropertyValue($property)
46 | {
47 | $_.$property
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/List-AD-Attributes.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: bsonposh
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2755
10 | Published Date: 2011-06-28t05
11 | Archived Date: 2011-07-06t05
12 | ---
13 |
14 | # list ad attributes -
15 |
16 | ## Description
17 |
18 | list active directory attributes from schema
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $forest = [DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()
41 | $Schema = $forest.schema
42 | $Properties = $Schema.FindAllProperties()
43 | foreach($property in $Properties)
44 | {
45 | "#################################"
46 | "Name: {0}" -f $property.Name
47 | "Link: {0}" -f $property.link
48 | "LinkID: {0}" -f $property.linkid
49 | if(!$?)
50 | {
51 | "Error: {0}" -f $error[0].message
52 | }
53 | "#################################"
54 | }
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/List-Object-Discoveries.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: cory delamarter (increased speed)
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 644
10 | Published Date:
11 | Archived Date: 2008-10-27t18
12 | ---
13 |
14 | # list object discoveries -
15 |
16 | ## Description
17 |
18 | enumerate opsmgr 2007 object discoveries targeted to windows server
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## class
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | get-discovery | ? {$_.Target -match $(get-monitoringclass -Name "Microsoft.Windows.Server.Computer").Id} | ft Name, DisplayName
41 | `
42 |
43 |
--------------------------------------------------------------------------------
/docs/List-Windows-File-Shares.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: therobotdave
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3837
10 | Published Date: 2013-12-19t15
11 | Archived Date: 2016-04-15t23
12 | ---
13 |
14 | # list windows file shares -
15 |
16 | ## Description
17 |
18 | create excel list of file shares from remote windows server (posh one-liner)
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-WmiObject Win32_Share -computerName SERVERNAME |
41 | Select Name, Caption, Path | Export-csv "c:\temp\SERVERNAME.csv" -NoTypeInformation
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/ListCmdletParameters.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: sean kearney
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 3188
10 | Published Date: 2012-01-25t21
11 | Archived Date: 2012-01-29t07
12 | ---
13 |
14 | # listcmdletparameters -
15 |
16 | ## Description
17 |
18 | extract all parameters for a cmdlet from get-help, list them in a single column
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #
41 | #
42 | #
43 | #
44 | #
45 | param($HelpData)
46 |
47 | ($HelpData).Syntax | SELECT-OBJECT �ExpandProperty SyntaxItem | SELECT-OBJECT �ExpandProperty parameter | SELECT-OBJECT name
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Lock-WorkStation.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: mike pfeiffer
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6037
10 | Published Date: 2016-10-05t10
11 | Archived Date: 2016-05-17t13
12 | ---
13 |
14 | # lock-workstation -
15 |
16 | ## Description
17 |
18 | locks the workstation’s display. locking a workstation protects it from unauthorized use.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `lock-workstation`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function Lock-WorkStation {
41 | $signature = @"
42 | [DllImport("user32.dll", SetLastError = true)]
43 | public static extern bool LockWorkStation();
44 | "@
45 |
46 | $LockWorkStation = Add-Type -memberDefinition $signature -name "Win32LockWorkStation" -namespace Win32Functions -passthru
47 | $LockWorkStation::LockWorkStation() | Out-Null
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Locked-accounts-alerter.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ty lopes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 5077
10 | Published Date: 2016-04-14t13
11 | Archived Date: 2016-10-18t06
12 | ---
13 |
14 | # locked accounts alerter -
15 |
16 | ## Description
17 |
18 | edit
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 |
43 |
44 |
45 | start-sleep 10
46 |
47 | $dcName = "$env:computername.$env:userdnsdomain"
48 | $eventID = "4740"
49 | $mailServer = "smtpServer"
50 | $eSubject = "AD account locked"
51 | $emailAddy = "user@domain.com"
52 |
53 | $lockEvent = get-eventlog -logname security -computername $dcName -instanceid $eventID -newest 1
54 |
55 | $emailBody = $lockEvent.message
56 | Send-MailMessage �From lockedAccount@domain.com �To $emailAddy �Subject $eSubject �Body $emailBody �SmtpServer $mailServer
57 |
58 | `
59 |
60 |
--------------------------------------------------------------------------------
/docs/Log-Off-Local-Users.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: logoffusers
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6229
10 | Published Date: 2016-02-19t21
11 | Archived Date: 2016-03-29t15
12 | ---
13 |
14 | # log off local users -
15 |
16 | ## Description
17 |
18 | logoff all disconnected local users, inspired by this
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $UserSessions = query.exe session | Select-Object -Skip 1
41 | foreach ($SessionString in $UserSessions) {
42 | $Session = $SessionString.Split(" ",[System.StringSplitOptions]::RemoveEmptyEntries)
43 | if (($Session[2] -eq "Disc") -and ($Session[0] -ne "services")) {
44 | logoff.exe $Session[1] /V
45 | }
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Logoff-all-disconnected-local-users-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6228
10 | Published Date:
11 | Archived Date: 2016-08-26t03
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | logoff all disconnected local users, inspired by this
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $UserSessions = query.exe session | Select-Object -Skip 1
41 | foreach ($SessionString in $UserSessions) {
42 | $Session = $SessionString.Split(" ",[System.StringSplitOptions]::RemoveEmptyEntries)
43 | if (($Session[2] -eq "Disc") -and ($Session[0] -ne "services")) {
44 | logoff.exe $Session[1] /V
45 | }
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Mail-Sig-Gen-XML.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: _rov3
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6314
10 | Published Date: 2016-04-21t21
11 | Archived Date: 2016-06-16t21
12 | ---
13 |
14 | # mail sig gen xml -
15 |
16 | ## Description
17 |
18 | mail signature generation xml for https
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## module
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 | \\FOO\signatures_log.txt
43 | \\FOO\signatures_errorlog.txt
44 | OU=FOO,DC=FOO,DC=FOO
45 | \\FOO\template.html
46 | \\FOO\\signatures
47 | C:\Program Files\Mail Signature Generator\Scripts\createSignature.psm1
48 | C:\Program Files\Mail Signature Generator\Temp
49 | 3600
50 |
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Multiple-strings-params.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1512
10 | Published Date:
11 | Archived Date: 2009-12-12t18
12 | ---
13 |
14 | # multiple strings params -
15 |
16 | ## Description
17 |
18 | multiple string parameters
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | function copySourceDestination {
42 | Param (
43 | [string]$sourceFile,
44 | [string]$destinationPath
45 | )
46 |
47 |
48 | Copy-Item -Path:$sourceFile -Destination:$destinationPath -Force
49 | }
50 |
51 |
52 | copySourceDestination "C:\bla.txt" "\\server\share\path"
53 | `
54 |
55 |
--------------------------------------------------------------------------------
/docs/NIC-Performance.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: halr9000
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1346
10 | Published Date:
11 | Archived Date: 2009-10-25t12
12 | ---
13 |
14 | # nic performance -
15 |
16 | ## Description
17 |
18 | reads perfmon counters from all network interfaces
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $cat = New-Object system.Diagnostics.PerformanceCounterCategory("Network Interface")
41 | $inst = $cat.GetInstanceNames()
42 | foreach ( $nic in $inst ) {
43 | $a = $cat.GetCounters( $nic )
44 | $a | ft CounterName, { $_.NextValue() } -AutoSize
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Networker-Delete-ssids.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: james pratt
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1317
10 | Published Date: 2009-09-10t17
11 | Archived Date: 2016-09-15t18
12 | ---
13 |
14 | # networker - delete ssids -
15 |
16 | ## Description
17 |
18 | delete nw ssids by clientname , for use in adv_file environments.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Write-Host ""
42 | Write-Host "This is dangerous - beware!"
43 | Write-Host "Type: delssids client.domain.com to DELETE ALL it's SAVESETS!!"
44 |
45 | function delssids {
46 | $client = $args[0]
47 | $ssids = (mminfo -av -q "client=$client" -r ssid)
48 | $ssids | ForEach-Object { nsrmm -d -S $_ -y }
49 | Write-Host "Removed SSID $_ "
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/New-DesktopIni.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5865
10 | Published Date: 2015-05-21t03
11 | Archived Date: 2015-05-23t02
12 | ---
13 |
14 | # new-desktopini -
15 |
16 | ## Description
17 |
18 | create a desktop.ini in your powershell folder setting the icon and messing with the display name.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## class
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $di = [System.IO.FileInfo]"$(split-path $Profile -Parent)\desktop.ini"
41 | set-content $di "[.ShellClassInfo]`r`nLocalizedResourceName=1$([char]160)WindowsPowerShell`r`nIconResource=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe,0`r`n[ViewState]`r`nFolderType=Documents"
42 | $di.Attributes = $di.Attributes -bor [IO.FileAttributes]"System,Hidden" -bxor [IO.FileAttributes]"Archive"
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/New-IseFile.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1618
10 | Published Date:
11 | Archived Date: 2010-02-03t16
12 | ---
13 |
14 | # new-isefile -
15 |
16 | ## Description
17 |
18 | if you are using ise put this file anywhere into your path and functions depending on it can use it.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `new-isefile`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function New-IseFile ($path = 'tmp_default.ps1')
41 | {
42 | $count = $psise.CurrentPowerShellTab.Files.count
43 | $null = $psIse.CurrentPowerShellTab.Files.Add()
44 | $Newfile = $psIse.CurrentPowerShellTab.Files[$count]
45 | $NewFile.SaveAs($path)
46 | $NewFile.Save([Text.Encoding]::default)
47 | $Newfile
48 |
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/New-NamedPipe.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 3.5
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 898
10 | Published Date:
11 | Archived Date: 2009-03-03t09
12 | ---
13 |
14 | # new-namedpipe -
15 |
16 | ## Description
17 |
18 | the below will create a bi-directional named pipe with the name you specify in the $pipename variable. note that .net 3.5 is required for the system.io.pipes namespace.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | [reflection.Assembly]::LoadWithPartialName("system.core") | Out-Null
41 | $pipeName = "pipename"
42 | $pipeDir = [System.IO.Pipes.PipeDirection]::InOut
43 | $pipe = New-Object system.IO.Pipes.NamedPipeServerStream( $pipeName, $pipeDir )
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/New-RandomComplePassword.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: naveen
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6274
10 | Published Date: 2016-03-31t04
11 | Archived Date: 2016-11-18t01
12 | ---
13 |
14 | # new-randomcomplepassword -
15 |
16 | ## Description
17 |
18 | generates a random password of a specified length.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `new-randomcomplexpassword`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function New-RandomComplexPassword ($length=20)
41 | $password = [System.Web.Security.Membership]::GeneratePassword($length,2)
42 | return $password
43 | New-RandomComplexPassword
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/New-UrlFile.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: halr9000
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 407
10 | Published Date: 2009-05-23t05
11 | Archived Date: 2016-04-19t06
12 | ---
13 |
14 | # new-urlfile -
15 |
16 | ## Description
17 |
18 | use this to create a .url file which can then be opened in your default browser using the invoke-item cmdlet. usage
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `new-urlfile`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function New-UrlFile
41 | {
42 | param( $URL = "http://www.google.com")
43 | $UrlFile = [system.io.Path]::ChangeExtension([system.io.Path]::GetTempFileName(),".url")
44 | $UrlFileContents = `
45 | "[InternetShortcut]",
46 | "URL=$URL"
47 | Write-Host $URL
48 | $UrlFileContents | Set-Content -Path $UrlFile
49 | Get-Item $UrlFile
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/PS-Get-RAM-size.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: florian frank
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4565
10 | Published Date: 2016-10-27t22
11 | Archived Date: 2016-04-20t01
12 | ---
13 |
14 | # ps -
15 |
16 | ## Description
17 |
18 | get the capacity of your installed ram with the win32_physicalmemory wmi class.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## class
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | [long]$memory = 0
41 |
42 | Get-WmiObject -Class Win32_PhysicalMemory | ForEach-Object -Process { $memory += $_.Capacity }
43 |
44 | $memory / 1GB
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Paint-board.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4030
10 | Published Date: 2013-03-18t17
11 | Archived Date: 2013-03-21t05
12 | ---
13 |
14 | # paint board -
15 |
16 | ## Description
17 |
18 | just for fun (my original post http
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function frmMain_Show {
41 | Add-Type -AssemblyName PresentationFramework
42 |
43 | $win = New-Object Windows.Window
44 | $ink = New-Object Windows.Controls.InkCanvas
45 | #
46 | #
47 | $ink.MinWidth = $ink.MinHeight = 450
48 | #
49 | #
50 | $win.Content = $ink
51 | $win.SizeToContent = "WidthAndHeight"
52 | $win.Title = "Paint board"
53 | $win.WindowStartupLocation = "CenterScreen"
54 |
55 | [void]$win.ShowDialog()
56 | }
57 |
58 | frmMain_Show
59 | `
60 |
61 |
--------------------------------------------------------------------------------
/docs/Pause.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: vidrine
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3339
10 | Published Date: 2012-04-10t11
11 | Archived Date: 2012-04-14t01
12 | ---
13 |
14 | # pause -
15 |
16 | ## Description
17 |
18 | function was originally posted by the powershell team on 2007/02/25 @ http
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Pause ($Message = "Press any key to continue...")
41 | {
42 | Write-Host -NoNewline $Message
43 | $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
44 | Write-Host ""
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Ping-Host.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: dragonmc77
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 599
10 | Published Date: 2009-09-23t19
11 | Archived Date: 2014-08-01t17
12 | ---
13 |
14 | # ping-host -
15 |
16 | ## Description
17 |
18 | simple function that pings a host and returns a boolean.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `ping-host`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Ping-Host {param( [string]$HostName,
41 | [int32]$Requests = 3)
42 |
43 | for ($i = 1; $i -le $Requests; $i++) {
44 | $Result = Get-WmiObject -Class Win32_PingStatus -ComputerName . -Filter "Address='$HostName'"
45 | Start-Sleep -Seconds 1
46 | if ($Result.StatusCode -ne 0) {return $FALSE}
47 | }
48 | return $TRUE
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Pipeline-and-Parameter.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: halr9000
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1428
10 | Published Date:
11 | Archived Date: 2009-12-17t03
12 | ---
13 |
14 | # pipeline and parameter -
15 |
16 | ## Description
17 |
18 | sample by r_keith_hill
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param(
41 | [Parameter(ValueFromPipeline=$true, Mandatory=$true, Position=0)]
42 | [string[]]
43 | $ComputerName
44 | )
45 |
46 | Process {
47 | foreach ($cn in $ComputerName) {
48 | Write-Host "Processing $cn"
49 | }
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Please-hep.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: varrum
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5837
10 | Published Date: 2015-04-29t13
11 | Archived Date: 2015-05-01t17
12 | ---
13 |
14 | # please hep -
15 |
16 | ## Description
17 |
18 | can someone explain to me what the following code is used to do? and how many it will produce? and how would the output be used?
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $chars = "b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"
41 |
42 | foreach($char1 in $chars){
43 | foreach($char2 in $chars){
44 | foreach($char3 in $chars){
45 | foreach($char4 in $chars){
46 | $pw = $char1+$char2+$char3+$char4
47 | write-host $pw
48 | }
49 | }
50 | }
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/PowerCLI-error-report.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 2020
10 | Published Date:
11 | Archived Date: 2010-07-26t15
12 | ---
13 |
14 | # powercli error report -
15 |
16 | ## Description
17 |
18 | generating error report bundle for vmware powercli / vsphere
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $getVmScript = {
41 | Connect-VIServer yourVCenterServer
42 | Get-VM
43 | }
44 | $ getVmScript | Get-ErrorReport -ProblemScriptTimeoutSeconds 60 -ProblemDescription "Get-VM hangs when trying to retrieve all the VMs form the server. The server�s inventory can be successfully browsed via the vClient." -Destination 'D:\bug report'
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/PowerGrowl-Sample.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: thom lamb
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6474
10 | Published Date: 2017-08-13t03
11 | Archived Date: 2017-03-31t03
12 | ---
13 |
14 | # powergrowl sample -
15 |
16 | ## Description
17 |
18 | powergrowl sample goes here
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## module
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Clear-Host
41 | $Location = $($Env:PSModulePath).Split(';')[0]
42 |
43 | Import-Module $Location\PowerGrowl.psm1
44 |
45 | Get-Module PowerGrowl | Format-List
46 |
47 |
48 | Register-GrowlType -AppName "PoshTwitter" -Name "Greetings" `
49 | -Icon "C:\Users\username\Documents\WindowsPowerShell\Modules\default_icon.png"
50 | Send-Growl "Greetings" "Hello World!"
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/PowerOracle.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: dfafadfds
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6666
10 | Published Date: 2017-01-04t15
11 | Archived Date: 2017-01-10t16
12 | ---
13 |
14 | # poweroracle -
15 |
16 | ## Description
17 |
18 | retrieve data from an oracle database into a dataset.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | [System.Reflection.Assembly]::LoadWithPartialName("Oracle.DataAccess")
41 |
42 | $ConnectionString = "Data Source=your_server/sid;User Id=user_name;Password=password"
43 |
44 |
45 | $OracleConnection = New-Object Oracle.DataAccess.Client.OracleConnection($ConnectionString)
46 | $dtSet = New-Object System.Data.DataSet
47 | $OracleAdapter = New-Object Oracle.DataAccess.Client.OracleDataAdapter($QueryString, $OracleConnection)
48 |
49 | [void]$OracleAdapter.Fill($dtSet)
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/PowerShell-Talk-Xen1.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: cody bunch
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1089
10 | Published Date: 2009-05-10t14
11 | Archived Date: 2014-10-23t14
12 | ---
13 |
14 | # powershell talk xen1 -
15 |
16 | ## Description
17 |
18 | the powershell talk, demo 1 – xenserver
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Get-Credential | connect-Xenserver -Url http://XenServer_URL/sdk
42 |
43 | Create-XenServer:Network -NameLabel "Test Network"
44 |
45 | Get-XenServer:Network -NameFilter "Test Network" | Set-XenServer:Network.NameDescription "This is the test network for the XenServer Demo"
46 |
47 | Get-XenServer:Network -NameFilter "Test Network" | Destroy-XenServer:Network
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Product-Code-to-GUID.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: adam bertram
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4687
10 | Published Date: 2013-12-11t03
11 | Archived Date: 2013-12-13t12
12 | ---
13 |
14 | # product code to guid -
15 |
16 | ## Description
17 |
18 | if you’re a developer, installation packager or a configmgr admin this script can be used to convert a product code to a guid. this comes in handy when reverse engineering product installations.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $string_indexes = [ordered]@{0=8;8=4;12=4;16=2;18=2;20=2;22=2;24=2;26=2;28=2;30=2}
41 | $productcode = '1234567890123456789012345678901234'
42 | foreach ($index in $string_indexes.GetEnumerator()) {
43 | $part = $productcode.Substring($index.Key,$index.Value).ToCharArray()
44 | [array]::Reverse($part)
45 | $part -join ''
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Quest-Dynamic-Group-001.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: vidrine
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 2012.07.06
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3497
10 | Published Date: 2012-07-06t01
11 | Archived Date: 2012-07-12t04
12 | ---
13 |
14 | # quest dynamic group 001 -
15 |
16 | ## Description
17 |
18 | quest – dynamic group 001 – convert normal group to a dynamic group
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | 2012.07.06
42 | Information will be uploaded shortly.
43 | #>
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Quest-Dynamic-Group-002.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: vidrine
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 2012.07.06
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3498
10 | Published Date: 2012-07-06t01
11 | Archived Date: 2012-07-12t05
12 | ---
13 |
14 | # quest dynamic group 002 -
15 |
16 | ## Description
17 |
18 | quest – dynamic group 002 – add a query (membership rule) to a dynamic group
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | 2012.07.06
42 | Information will be uploaded shortly.
43 | #>
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Quest-Dynamic-Group-003.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: vidrine
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 2012.07.06
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3499
10 | Published Date: 2012-07-06t01
11 | Archived Date: 2012-07-12t04
12 | ---
13 |
14 | # quest dynamic group 003 -
15 |
16 | ## Description
17 |
18 | quest – dynamic group 003 – modify a query (membership rule) in a dynamic group
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | 2012.07.06
42 | Information will be uploaded shortly.
43 | #>
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Quest-Dynamic-Group-004.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: vidrine
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 2012.07.06
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3500
10 | Published Date: 2012-07-06t01
11 | Archived Date: 2012-07-12t05
12 | ---
13 |
14 | # quest dynamic group 004 -
15 |
16 | ## Description
17 |
18 | quest – dynamic group 004 – display a dynamic group’s queries (membership rules)
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | 2012.07.06
42 | Information will be uploaded shortly.
43 | #>
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Quest-Dynamic-Group-005.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: vidrine
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 2012.07.06
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3501
10 | Published Date: 2012-07-06t01
11 | Archived Date: 2012-07-10t00
12 | ---
13 |
14 | # quest dynamic group 005 -
15 |
16 | ## Description
17 |
18 | quest – dynamic group 005 – convert normal group to a dynamic group
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | 2012.07.06
42 | Information will be uploaded shortly.
43 | #>
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Queue-Checker.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: littlegun
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3640
10 | Published Date: 2012-09-14t11
11 | Archived Date: 2012-09-21t03
12 | ---
13 |
14 | # queue checker -
15 |
16 | ## Description
17 |
18 | checks all exchange queues in an organization
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | foreach
41 | ($ExchangServer in (Get-ExchangeServer | Where { $_.isHubTransportServer -eq $True}))
42 | {Get-queue -Server $ExchangeServer}
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/REALLY-validates-given-IP-address-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: mow01
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 172.30.2.112
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5841
10 | Published Date: 2016-05-02t07
11 | Archived Date: 2016-09-07t04
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | really validates given ip address and returns true/false. the original script didn’t allow zeros in the ip address (eg
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | PARAM($IP=$(read-host "Enter any IP Address"))
41 |
42 |
43 |
44 |
45 | #[system.net.IPAddress]::tryparse($ip,[ref]$null)
46 |
47 |
48 | [ref]$a = $null
49 | [system.net.IPAddress]::tryparse($ip,$a)
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/RESTful-Server.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: parul jain
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5365
10 | Published Date: 2015-08-13t21
11 | Archived Date: 2015-11-04t09
12 | ---
13 |
14 | # restful server -
15 |
16 | ## Description
17 |
18 | restful server in pure powershell. does not require a webserver. requires powershell v3.0. further development of this project has moved to https
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | <#
41 | Further development of this project has moved to https://github.com/paruljain/powershell-webserver
42 | #>
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/RSS-Enclosure-Downloader.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: alexander groß
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 632
10 | Published Date: 2008-10-09t20
11 | Archived Date: 2012-10-25t21
12 | ---
13 |
14 | # rss enclosure downloader -
15 |
16 | ## Description
17 |
18 | rss enclosure downloader
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $feed=[xml](New-Object System.Net.WebClient).DownloadString("http://the/rss/feed/url")
41 |
42 | foreach($i in $feed.rss.channel.item) {
43 | $url = New-Object System.Uri($i.enclosure.url)
44 |
45 | $url.ToString()
46 | $url.Segments[-1]
47 |
48 | (New-Object System.Net.WebClient).DownloadFile($url, $url.Segments[-1])
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Re-IP-VMs.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1284
10 | Published Date:
11 | Archived Date: 2009-08-25t01
12 | ---
13 |
14 | # re-ip vms -
15 |
16 | ## Description
17 |
18 | re-ip vmware vms based on the contents of a csv
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | foreach ($entry in (import-csv "spreadsheet.csv")) {
41 | $ipScript = @"
42 | `$NetworkConfig = Get-WmiObject -Class Win32_NetworkAdapterConfiguration
43 | `$NicAdapter = `$NetworkConfig | where {`$_.DHCPEnabled -eq "True"}
44 | `$NicAdapter.EnableStatic('$entry.IP','$entry.Netmask')
45 | `$NicAdapter.SetGateways('$entry.Gateway')
46 | "@
47 |
48 | Get-VM $entry.VMName | Invoke-VMScript -HostUser $entry.HU -HostPassword $entry.HP -GuestUser $gu -GuestPassword $gp $ipScript
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Read-HostMasked.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 104
10 | Published Date: 2008-01-08t21
11 | Archived Date: 2017-04-30t12
12 | ---
13 |
14 | # read-hostmasked -
15 |
16 | ## Description
17 |
18 | read a string from the host using securestring input, but output it as a plain string for use in functions that don’t accept securestrings
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `read-hostmasked`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Read-HostMasked([string]$prompt="Password") {
41 | $password = Read-Host -AsSecureString $prompt;
42 | $BSTR = [System.Runtime.InteropServices.marshal]::SecureStringToBSTR($password);
43 | $password = [System.Runtime.InteropServices.marshal]::PtrToStringAuto($BSTR);
44 | [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($BSTR);
45 | return $password;
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Regex-fun.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: zefram
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5605
10 | Published Date: 2015-11-20t18
11 | Archived Date: 2015-01-31t20
12 | ---
13 |
14 | # regex fun -
15 |
16 | ## Description
17 |
18 | regex match valid character string
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $CharsString = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789!@#$%^&*()-=_+[]/\{}|:;'`",.<>?``~"
41 |
42 | a' -match "[$([regex]::escape($CharsString))]"
43 | > False
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Release-ComObject.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: redyey
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5703
10 | Published Date: 2015-01-22t02
11 | Archived Date: 2015-01-24t06
12 | ---
13 |
14 | # release-comobject -
15 |
16 | ## Description
17 |
18 | author unknown.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `remove-comobject`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Remove-ComObject {
41 | [CmdletBinding()]
42 | param()
43 | end {
44 | Start-Sleep -Milliseconds 500
45 | [Management.Automation.ScopedItemOptions]$scopedOpt = 'ReadOnly, Constant'
46 | Get-Variable -Scope 1 | Where-Object {
47 | $_.Value.pstypenames -contains 'System.__ComObject' -and -not ($scopedOpt -band $_.Options)
48 | } | Remove-Variable -Scope 1 -Verbose:([Bool]$PSBoundParameters['Verbose'].IsPresent)
49 | [gc]::Collect()
50 | }
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Remotely-query-select-machines-for-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1923
10 | Published Date:
11 | Archived Date: 2010-06-21t02
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | remotely query select machines for system information the easy way.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #########################################################################################################
40 |
41 | foreach ($comp in $args)
42 | {
43 | echo ""
44 | echo ""
45 | echo ""
46 | echo "System data for $comp "
47 | echo ""
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Remove-Special-Char.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: mjohnson
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6493
10 | Published Date: 2016-08-29t09
11 | Archived Date: 2016-11-05t09
12 | ---
13 |
14 | # remove special char -
15 |
16 | ## Description
17 |
18 | this will recursively remove non-alphanumeric\decimal (via regex) characters from all folder and filenames. the decimals are left in tact for file extensions.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | gci 'c:\test\' -Recurse | % { Rename-Item $_.FullName $($_.Name -replace
41 | '[^\w\.]','') }
42 | `
43 |
44 |
--------------------------------------------------------------------------------
/docs/Remove-diacritics.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: grgory schiro
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 5423
10 | Published Date: 2017-09-13t23
11 | Archived Date: 2017-05-17t23
12 | ---
13 |
14 | # remove diacritics -
15 |
16 | ## Description
17 |
18 | remove diacritics from string
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `remove-diacritics`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | function Remove-Diacritics([string]$String)
42 | {
43 | ($String.Normalize([Text.NormalizationForm]::FormD)-replace'\p{Mn}').Normalize([Text.NormalizationForm]::FormC)
44 | }
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Rename-NICs.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: powershelluser
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1452
10 | Published Date: 2012-11-03t17
11 | Archived Date: 2012-06-08t04
12 | ---
13 |
14 | # rename nics -
15 |
16 | ## Description
17 |
18 | rename network adapters to their mac addresses
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## class
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $Shell = New-Object -com shell.application
41 | $NetCons = $Shell.Namespace(0x31)
42 | $NetCons.Items() |
43 | where {$_.Name -like 'Local Area Connection*'} |
44 | foreach{$AdapName=$_.Name; get-WmiObject -class Win32_NetworkAdapter |
45 | where-Object {$_.NetConnectionID -eq $AdapName} |
46 | foreach {$MAC=$_.MacAddress}
47 | $_.Name=$MAC.replace(':','.')
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Roll-Dice.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: cody bunch
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1953
10 | Published Date: 2010-07-07t11
11 | Archived Date: 2013-11-15t09
12 | ---
13 |
14 | # roll-dice.ps1 -
15 |
16 | ## Description
17 |
18 | a really bad roll-dice script to do ‘bad things’ to vmware snapshots taken on the pipeline.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Begin {
42 | $rand = New-Object System.Random
43 | $dice = $rand.next(1,4)
44 | }
45 |
46 | Process {
47 | if ( $_ -isnot [VMware.VimAutomation.Types.Snapshot] ) { continue }
48 | if ($dice -gt 1) {
49 | $_ | Remove-Snapshot -Confirm:$false
50 | Write-Host "OH NOES! Snapshot $_ Has been deleted!`n"
51 | } else {
52 | Write-Host "Snapshot $_ lives to fight again!`n"
53 | }
54 | }
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/Save-CurrentFile-ISE.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1318
10 | Published Date:
11 | Archived Date: 2009-09-16t23
12 | ---
13 |
14 | # save-currentfile (ise) -
15 |
16 | ## Description
17 |
18 | why to use a fileselectionbox to save your fresh files from ise, don’t you know your file system? ok perhaps an encoding parameter would be fine, but please don’t default it to ascii.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `save-currentfile`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Save-CurrentFile ($path)
41 | {
42 | $psISE.CurrentFile.SaveAs($path)
43 | $psISE.CurrentFile.Save([Text.Encoding]::default)
44 |
45 | }
46 |
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/ScriptMethod-Example.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3719
10 | Published Date: 2013-10-29t18
11 | Archived Date: 2016-05-26t08
12 | ---
13 |
14 | # scriptmethod example -
15 |
16 | ## Description
17 |
18 | an example of a script method with mandatory parameters
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $x = New-Object PSObject | Add-Member -MemberType ScriptMethod -Name Test -Value {
41 | .{
42 | param (
43 | [Parameter(Mandatory=$true)]
44 | [ValidateNotNullOrEmpty()]
45 | [string]$Message
46 | )
47 | "This is the message: $Message"
48 | } @args
49 | } -PassThru
50 |
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Search-PoshcodeScript.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5419
10 | Published Date: 2015-09-12t05
11 | Archived Date: 2015-01-31t20
12 | ---
13 |
14 | # search-poshcodescript -
15 |
16 | ## Description
17 |
18 | i found this script very useful. enjoy!
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `search-poshcodescript`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Search-PoshcodeScript {
41 | <#
42 | .EXAMPLE
43 | PS C:\> Search-PoshcodeScript "logon users"
44 | .NOTES
45 | Author: greg zakharov
46 | #>
47 | param(
48 | [Parameter(Mandatory=$true)]
49 | [String]$ScriptName
50 | )
51 |
52 | &(([Regex]"(?<=`")(.*)(?=`"\s)").Match(
53 | (cmd /c ftype (cmd /c assoc .html).Split('=')[1])
54 | ).Value) ('http://poshcode.org/?lang=&q=' + $ScriptName -replace '\s', '+')
55 | }
56 | `
57 |
58 |
--------------------------------------------------------------------------------
/docs/Search-cmdlet-help.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: carter shanklin
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1254
10 | Published Date:
11 | Archived Date: 2009-08-10t02
12 | ---
13 |
14 | # search cmdlet help -
15 |
16 | ## Description
17 |
18 | this is a simple little function to search all available cmdlets for a given keyword. similar to man -k.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `search-help`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Search-Help($term) {
41 | Get-Command | Where { Get-Help -full -ea SilentlyContinue $_ |
42 | Out-String | Select-String $term }
43 | }
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Search-for-PowerCLI-4-1-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1996
10 | Published Date:
11 | Archived Date: 2010-07-21t21
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | search for powercli 4.1 incompatible type references
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-PSDrive -PSProvider FileSystem | foreach { $_.Root } | `
41 | Get-ChildItem -Recurse -Include '*.ps1', '*.psm1', '*.ps1xml' | `
42 | where { Select-String -Path $_ -SimpleMatch -Pattern `
43 | 'VMware.VimAutomation.Types.', `
44 | 'VMware.VimAutomation.Client20.', `
45 | '[Datastore]' }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Send-Popup.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: sdfsdfsdfsdfsdf
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6440
10 | Published Date: 2016-07-01t20
11 | Archived Date: 2016-08-14t13
12 | ---
13 |
14 | # send-popup -
15 |
16 | ## Description
17 |
18 | send a popup message to a user on a remote computer.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `send-popup`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Send-Popup {
41 |
42 | param ($Computername,$Message)
43 |
44 | if (Test-Connection -ComputerName $Computername -Count 1 -Quiet){
45 | Invoke-Command -ComputerName $Computername -ScriptBlock { param ($m) msg * $m } -ArgumentList $Message
46 | Write-Host "Message sent!"
47 | } else {
48 | Write-Host "Computer not online"
49 | }
50 |
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Services-Auto-NotRunning.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lazywinadmincom
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2760
10 | Published Date: 2011-06-29t19
11 | Archived Date: 2015-10-18t23
12 | ---
13 |
14 | # services auto notrunning -
15 |
16 | ## Description
17 |
18 | check if all the services with startmode automatic are actually running
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-WmiObject Win32_Service -ComputerName . |`
41 | where {($_.startmode -like "*auto*") -and `
42 | ($_.state -notlike "*running*")}|`
43 | select DisplayName,Name,StartMode,State|ft -AutoSize
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Set-DNSServersToOpenDNS.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: crazydave
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3769
10 | Published Date: 2013-11-16t11
11 | Archived Date: 2017-03-18t07
12 | ---
13 |
14 | # set-dnsserverstoopendns -
15 |
16 | ## Description
17 |
18 | [one-liner] sets all the local adapters to point to opendns.org’s dns servers
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'" | ForEach-Object {
41 | $_.SetDNSServerSearchOrder(@("208.67.222.222","208.67.220.220"));
42 | }
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/Set-PsBreakPointLastErro.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: lee holmes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2221
10 | Published Date: 2011-09-09t21
11 | Archived Date: 2016-05-17t13
12 | ---
13 |
14 | # set-psbreakpointlasterro -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Set-StrictMode -Version Latest
41 |
42 | $lastError = $error[0]
43 | Set-PsBreakpoint $lastError.InvocationInfo.ScriptName `
44 | $lastError.InvocationInfo.ScriptLineNumber
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Setup-Profile.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: jmh6182
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5158
10 | Published Date: 2014-05-10t03
11 | Archived Date: 2014-05-15t01
12 | ---
13 |
14 | # setup-profile -
15 |
16 | ## Description
17 |
18 | creates a blank profile
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `setup-profile`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function Setup-Profile{
41 |
42 | $hasProfile = Test-Path -Path $profile
43 |
44 | if ($hasProfile -eq $false){
45 | $answer = Read-Host "No profile detected. Would you like to create one? (Y)es or (N)o"
46 | while("y","n","yes","no" -notcontains $answer)
47 | {
48 | $answer = Read-Host "Yes or No"
49 | }
50 |
51 | if ($answer -eq "y"){
52 | New-Item -Path $profile -ItemType "file" -Force
53 | }
54 | }
55 | }
56 | `
57 |
58 |
--------------------------------------------------------------------------------
/docs/Show-Databases-on-server.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: rob sewell http
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 5984
10 | Published Date: 2016-08-24t18
11 | Archived Date: 2016-05-17t10
12 | ---
13 |
14 | # show databases on server - show-databasesonserver.ps1
15 |
16 | ## Description
17 |
18 | #############################################################################################
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `show-databasesonserver`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #############################################################################################
41 | #
42 | #
43 |
44 |
45 | Function Show-DatabasesOnServer ([string]$Server)
46 | {
47 | $srv = New-Object ('Microsoft.SqlServer.Management.Smo.Server') $server
48 |
49 | Write-Host " The Databases on $Server Are As Follows"
50 | $srv.databases| Select Name
51 | }
52 | `
53 |
54 |
--------------------------------------------------------------------------------
/docs/Show-EventLog.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: rob sewell http
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: utf-8
8 | License: cc0
9 | PoshCode ID: 4465
10 | Published Date: 2013-09-12t10
11 | Archived Date: 2013-09-17t23
12 | ---
13 |
14 | # show-eventlog - show-eventlog.ps1
15 |
16 | ## Description
17 |
18 | #############################################################################################
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `show-eventlog`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | #############################################################################################
42 | #
43 | #
44 |
45 | Function Show-EventLog ($Server,$log,$Latest)
46 | {
47 | Get-EventLog -computername $server -log $log -newest $latest | Out-GridView
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/So-many-holla-dollas.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6010
10 | Published Date:
11 | Archived Date: 2016-05-17t13
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | so many holla dollas
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $30DaysFiles = Get-ChildItem $dataLocation | Where-object {
41 | ([datetime]::ParseExact($_.Name.Substring(4,6),"yyMMdd",$null) -gt (Get-Date).AddDays(-31)) -and `
42 | ([datetime]::ParseExact($_.Name.Substring(4,6),"yyMMdd",$null) -lt (Get-Date)) -and`
43 |
44 |
45 | (($db | Where-Object {$_.Date -eq [datetime]::ParseExact($_.Name.Substring(4,6),"yyMMdd",$null).ToString("MM/dd/yyyy")}) -eq $null)
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Start-Elevated.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 165
10 | Published Date: 2008-04-03t10
11 | Archived Date: 2017-04-30t13
12 | ---
13 |
14 | # start-elevated -
15 |
16 | ## Description
17 |
18 | a simple function based on http
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `start-elevated`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param ($app)
41 | $psi = new-object "System.Diagnostics.ProcessStartInfo"
42 | $psi.FileName = $app;
43 | $psi.Arguments = [string]$args;
44 | $psi.Verb = "runas";
45 | [System.Diagnostics.Process]::Start($psi)
46 | #}
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Start-Process.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 741
10 | Published Date:
11 | Archived Date: 2008-12-21t05
12 | ---
13 |
14 | # start-process -
15 |
16 | ## Description
17 |
18 | this is a simple function that can “start” apps and return the process object. in particular, it can start uris, documents, and apps defined in the “app paths” registry, and basically anything that you could start from the run dialog.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Start($app,$param) {
41 | if($param) {
42 | [Diagnostics.Process]::Start( $app, $param )
43 | } else {
44 | [Diagnostics.Process]::Start( $app )
45 | }
46 | }
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/Start-SCOM-Maint-Mode.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: austin greca
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6060
10 | Published Date: 2016-10-21t18
11 | Archived Date: 2016-05-17t10
12 | ---
13 |
14 | # start scom maint mode -
15 |
16 | ## Description
17 |
18 | turns on maintenance mode for a specific computer monitored by scom (system center operations manager). ensure that the operationsmanager module is available on the computer from which this script is executed.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## module
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Import-Module OperationsManager
41 |
42 | $computer = "mycomputer.mydomain.com"
43 |
44 | $time = (Get-date).AddMinutes(15)
45 |
46 | $instance = Get-SCOMClassInstance -Name $computer -ComputerName myscommgmtserver
47 |
48 | Start-SCOMMaintenanceMode -Instance $instance -EndTime $time -Comment "Applying updates" -Reason PlannedOther
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Step02b-Import-VM-to-Fol.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: leon scheltema
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5665
10 | Published Date: 2015-01-07t12
11 | Archived Date: 2015-01-15t20
12 | ---
13 |
14 | # step02b-import-vm-to-fol -
15 |
16 | ## Description
17 |
18 | import vcenter folder structure incl vm relations
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $NewVC = "New vCenter"
42 |
43 | Connect-VIServer "$NewVC"
44 |
45 | $vmlist = Import-Csv "migratedvms.csv"
46 | move-vm -vm $vmlist[0].name -Location (get-view -id $vmlist[0].folder -Server $newVC|get-viobjectbyviview) -Server $NewVC
47 |
48 | Disconnect-VIServer -server "$NewVC" -Force -Confirm:$false
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Step03a-DatastoreCluster.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: leon scheltema
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5666
10 | Published Date: 2015-01-07t13
11 | Archived Date: 2015-01-09t22
12 | ---
13 |
14 | # step03a-datastorecluster -
15 |
16 | ## Description
17 |
18 | script to export datastore information per datastore cluster to csv
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $VC1 = "Old vCenter"
42 | $DSCluster = "Datastore Cluster"
43 |
44 | Connect-VIServer "$VC1"
45 |
46 | Get-DatastoreCluster -name $DSCluster | Get-Datastore | Select-object Name | Export-Csv $DSCluster.csv
47 |
48 | Disconnect-VIServer -server "$VC1" -Force -Confirm:$false
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Step03b-Move-datastore-t.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: leon scheltema
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5667
10 | Published Date: 2015-01-07t13
11 | Archived Date: 2015-01-15t20
12 | ---
13 |
14 | # step03b-move-datastore-t -
15 |
16 | ## Description
17 |
18 | script to create datastore clusters and add datastores from csv
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $VC1 = "New vCenter"
42 | $DSCluster = "Datastore Cluster"
43 |
44 | Connect-VIServer "$VC1"
45 |
46 | Set-DatastoreCluster -DatastoreCluster $DSCluster -SdrsAutomationLevel FullyAutomated
47 |
48 | Import-CSV $DSCluster.csv | ForEach-Object {
49 |
50 | $Datastore = $_.Name
51 |
52 | move-datastore -Datastore $Datastore -Destination $DSCluster
53 |
54 | Disconnect-VIServer -server "$VC1" -Force -Confirm:$false
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/Sync-Time.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: boggers
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4103
10 | Published Date: 2015-04-12t17
11 | Archived Date: 2015-10-27t12
12 | ---
13 |
14 | # sync-time -
15 |
16 | ## Description
17 |
18 | syncs the system time with that of a remote time server. uses netcmdlets.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `sync-time`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function sync-time(
41 | [string] $server = "sync-time 0.pool.ntp.org, clock.psu.edu",
42 | [int] $port = 37)
43 | {
44 | $servertime = get-time -server $server -port $port -set
45 | write-host "Server time:" $servertime
46 | write-host "Local time :" $(date)
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Terminate-process-user.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ty lopes
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3689
10 | Published Date: 2012-10-12t08
11 | Archived Date: 2012-10-14t23
12 | ---
13 |
14 | # terminate process / user -
15 |
16 | ## Description
17 |
18 | #ty lopes – calgary – oct 2012
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #(Troy is a huge nerd)
41 |
42 |
43 | $username = "username"
44 | $process= "notepad"
45 |
46 | $owners = @{}
47 | gwmi win32_process |% {$owners[$_.handle] = $_.getowner().user}
48 | get-process $process | select processname,Id,@{l="Owner";e={$owners[$_.id.tostring()]}} | where-object {$_.owner -eq $username} | kill -force
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/Test-WebDAV.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: halr9000
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3357
10 | Published Date: 2012-04-16t02
11 | Archived Date: 2016-11-28t14
12 | ---
13 |
14 | # test-webdav -
15 |
16 | ## Description
17 |
18 | quickly tests if a given web server (specified by url parameter) is running a webdav service. should work against any server platform that supports the webdav rfcs.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `test-webdav`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Test-WebDav ()
41 | {
42 | param ( $Url = "$( throw 'URL parameter is required.')" )
43 | $xhttp = New-Object -ComObject msxml2.xmlhttp
44 | $xhttp.open("OPTIONS", $url, $false)
45 | $xhttp.send()
46 | if ( $xhttp.getResponseHeader("DAV") ) { $true }
47 | else { $false }
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/The-Letter-Diamond-Oneli.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1032
10 | Published Date: 2010-04-15t15
11 | Archived Date: 2017-04-08t23
12 | ---
13 |
14 | # the letter diamond oneli -
15 |
16 | ## Description
17 |
18 | @camurphy a slightly more elegant powershell version for his challenge
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | &{Param([char]$l)$s=66;$z=[int]$l;$o=$z-$s+ 5;$p=-1;$n=&{"$(" "*$o)A";([string[]][char[]]($s..$z))|%{$p+=2;$o--;"$(" "*$o)$_$(" "*$p)$_"}};$n;$n[$($n.Length-2)..0]}L
41 | `
42 |
43 |
--------------------------------------------------------------------------------
/docs/The-Letter-Diamond.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1029
10 | Published Date: 2010-04-15t07
11 | Archived Date: 2017-04-10t19
12 | ---
13 |
14 | # the letter diamond -
15 |
16 | ## Description
17 |
18 | @camurphy a slightly more elegant powershell version for his challenge
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Param([char]$letter = "E", [int]$padding=5)
41 | $start = [int][char]"B"
42 | $end = [int]$letter
43 |
44 | $outerpadding = ($end - $start) + $padding
45 | $innerpadding = -1
46 |
47 | $lines = &{
48 | "$(" " * $outerpadding)A"
49 | foreach($char in ([string[]][char[]]($start..$end))) {
50 | $innerpadding += 2; $outerpadding--
51 | "$(" " * $outerpadding)$char$(" " * $innerpadding)$char"
52 | }
53 | }
54 |
55 | $lines
56 | $lines[$($lines.Length-2)..0]
57 | `
58 |
59 |
--------------------------------------------------------------------------------
/docs/The-other-Post.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 964
10 | Published Date:
11 | Archived Date: 2009-03-27t18
12 | ---
13 |
14 | # the other post -
15 |
16 | ## Description
17 |
18 | http
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $insParm = '/s /v"/qn /norestart"'
41 | $updList = get-cluster -name $YouClusterNameHere | get-vm |
42 | where-object {$_.powerstate -eq "PoweredON"} |
43 | foreach-object { get-view $_.ID } |
44 | where { $_.guest.toolsstatus -match "toolsOld" }
45 | foreach ($uVM in $updList)
46 | {
47 | $uVM.name
48 | $uVM.UpgradeTools_Task($insParm)
49 | Start-sleep -s 30
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/TheMathFunction.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2094
10 | Published Date: 2012-08-19t11
11 | Archived Date: 2012-01-08t21
12 | ---
13 |
14 | # themathfunction -
15 |
16 | ## Description
17 |
18 | you need to download and unpack loresoft.mathexpressions.dll into your documents\windowspowershell\libraries or tweak this module.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `use-math`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Add-Type -Path (Join-Path (Split-Path $Profile) Libraries\LoreSoft.MathExpressions.dll)
41 |
42 | $MathEvaluator = New-Object LoreSoft.MathExpressions.MathEvaluator
43 |
44 | Function Use-Math {
45 | $MathEvaluator.Evaluate( ($args -join " ") )
46 | }
47 |
48 | Set-Alias Math Use-Math
49 |
50 | Export-ModuleMember -Function * -Alias *
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Thin-provisioning-with-P.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1987
10 | Published Date:
11 | Archived Date: 2010-07-21t21
12 | ---
13 |
14 | # thin provisioning with p -
15 |
16 | ## Description
17 |
18 | thin provisioning with powercil 4.0 version
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function ConvertVMDiskToThin($vm, $datastore) {
41 | $vmView = Get-View $vm
42 | $dsView = Get-View $datastore
43 |
44 | $relocateSpec = New-Object VMware.Vim.VirtualMachineRelocateSpec
45 | $relocateSpec.Datastore = $dsView.MoRef
46 | $relocateSpec.Transform = "sparse"
47 |
48 | $vmView.RelocateVM($relocateSpec, $null)
49 | }
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/Time-Stamp.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: will steele
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2795
10 | Published Date: 2011-07-17t15
11 | Archived Date: 2016-10-30t02
12 | ---
13 |
14 | # time-stamp -
15 |
16 | ## Description
17 |
18 | this is a very simple function that returns a datetime time stamp. i use it in scripts for noting times when actions occur like this write-host “$(time-stamp)
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `time-stamp`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Time-Stamp
41 | {
42 | return [System.DateTime]::Now.ToString("yyyy.MM.dd hh:mm:ss");
43 | }
44 |
45 | New-Alias -Name ts -Value Time-Stamp;
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Trims-text-and-signs-it.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5135
10 | Published Date:
11 | Archived Date: 2014-05-05t02
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | trims text and signs it
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | (Get-Content c:\loltweaks.export.ps1) | ` Where-Object { $_ -match '\S' } | ` Out-File c:\loltweaks.ps1
41 | $filename = "c:\loltweaks.ps1"
42 | $lines = (Get-Content $filename);
43 | $lines | ForEach-Object { $_.Trim(); } | Out-File C:\LoLtweaks.ps1
44 | Set-AuthenticodeSignature C:\LoLtweaks.ps1 @(Get-ChildItem cert:\CurrentUser\My -codesigning)[0] -TimestampServer http://timestamp.comodoca.com/authenticode
45 | `
46 |
47 |
--------------------------------------------------------------------------------
/docs/Update-ISETabs.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3135
10 | Published Date: 2012-12-30t16
11 | Archived Date: 2012-01-11t06
12 | ---
13 |
14 | # update-isetabs -
15 |
16 | ## Description
17 |
18 | reloads all the file tabs in ise (ps3ctp2)
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | foreach($tab in $psISE.PowerShellTabs) {
41 | foreach($file in $tab.Files) {
42 | $position = Select-Object -InputObject $file.Editor -Property CaretLine, CaretColumn
43 | $content = Get-Content $file.FullPath -Raw
44 | if($content -ne $file.Editor.Text) {
45 | $file.Editor.Text = Get-Content $file.FullPath -Raw
46 | Write-Verbose "Updated $($file.DisplayName)"
47 | $file.Editor.SetCaretPosition( $Position.CaretLine, $Position.CaretColumn )
48 | }
49 | }
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/Update-web-config.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: anonymous
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4000
10 | Published Date: 2015-03-06t21
11 | Archived Date: 2015-05-05t01
12 | ---
13 |
14 | # update web.config -
15 |
16 | ## Description
17 |
18 | the beauty of iis web.config files is they are just text files. this function can be used to update values such as computer names in connection strings or any other matched string. note that the replace function is case sensitive.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `update-wccontents`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Function Update-WCContents($File,$SearchString,$NewValue){
41 | $Contents = Get-Content -Path $File
42 | $Contents | %{$_.Replace($SearchString,$NewValue)} | Set-Content $File
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/Updates-group-policy.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: johnny reel
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4722
10 | Published Date: 2013-12-19t19
11 | Archived Date: 2013-12-22t06
12 | ---
13 |
14 | # updates group policy -
15 |
16 | ## Description
17 |
18 | updates group policy on remote domain computer,(can be modified easily to include all computers or a list.). i wrote this for our field techs, simple but useful.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## module
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Import-Module -Name ActiveDirectory
42 |
43 |
44 | $cn = Get-ADComputer -Filter 'Name -like ""'
45 | $cred = $User
46 | $session = New-PSSession -ComputerName $cn.Name -Credential $cred
47 | Invoke-Command -Session $session -ScriptBlock {gpupdate /force}
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/VMtools-update-No-reboot.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: leon scheltema
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4192
10 | Published Date: 2013-06-05t13
11 | Archived Date: 2013-06-11t08
12 | ---
13 |
14 | # vmtools update-no reboot -
15 |
16 | ## Description
17 |
18 | update vmtools
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Get-VM | Get-VMGuest | Where{$_.GuestId} | Where{$_.GuestId.contains("win") -and $_.State -eq 'Running'} | Update-Tools -NoReboot
41 | `
42 |
43 |
--------------------------------------------------------------------------------
/docs/VerifyCategoryRule.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: sddrcerrr
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2698
10 | Published Date: 2012-05-27t11
11 | Archived Date: 2016-03-19t00
12 | ---
13 |
14 | # verifycategoryrule.ps1 -
15 |
16 | ## Description
17 |
18 | from windows powershell cookbook (o’reilly) by lee holmes
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Set-StrictMode -Version Latest
42 |
43 | if($message.Body -match "book")
44 | {
45 | [Console]::WriteLine("This is a message about the book.")
46 | }
47 | else
48 | {
49 | [Console]::WriteLine("This is an unknown message.")
50 | }
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/WellKnownSidType.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4559
10 | Published Date: 2013-10-26t15
11 | Archived Date: 2013-11-01t01
12 | ---
13 |
14 | # wellknownsidtype -
15 |
16 | ## Description
17 |
18 | see http
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | [Enum]::GetNames([Security.Principal.WellKnownSidType]) | % {
41 | $itm = [Security.Principal.WellKnownSidType]::$_
42 | try {
43 | $sid = New-Object Security.Principal.SecurityIdentifier($itm, $null)
44 | $sid.Translate([Security.Principal.NTAccount]).Value
45 | }
46 | catch {}
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/Where-Like.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: sibroller
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4283
10 | Published Date: 2013-07-02t08
11 | Archived Date: 2013-07-09t04
12 | ---
13 |
14 | # where-like -
15 |
16 | ## Description
17 |
18 | where-like function works as a pipeline console filter.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `where-like`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Where-Like {
41 | Param($member, $string)
42 | process { $input | where {$_.$member -like $string} }
43 | }
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/Write-IseFile.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1619
10 | Published Date:
11 | Archived Date: 2010-02-03t15
12 | ---
13 |
14 | # write-isefile -
15 |
16 | ## Description
17 |
18 | if you are using ise put this file anywhere into your path and functions depending on it can use it.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `write-isefile`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Write-IseFile($file, $msg)
41 | {
42 | $Editor = $file.Editor
43 | $Editor.SetCaretPosition($Editor.LineCount, 1)
44 | $Editor.InsertText(($msg + "`r`n"))
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/Write-ScriptVariables.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ryan smith
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 3836
10 | Published Date: 2012-12-19t12
11 | Archived Date: 2012-12-22t08
12 | ---
13 |
14 | # write-scriptvariables -
15 |
16 | ## Description
17 |
18 | print variables defined in the script (excludes global vars)
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `write-scriptvariables`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Write-ScriptVariables {
41 | $globalVars = get-variable -scope Global | % { $_.Name }
42 | Get-Variable -scope Script | Where-Object { $globalVars -notcontains $_.Name } | Where-Object { $_.Name -ne 'globalVars' } | Out-String
43 | }
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/accelerators-for-posh-2.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4567
10 | Published Date: 2013-10-28t07
11 | Archived Date: 2013-11-01t01
12 | ---
13 |
14 | # accelerators for posh 2 -
15 |
16 | ## Description
17 |
18 | as you know powershell v3 has [accelerators] type but powershell v2 has not this feature. so why do i have to endure this omission in powershell v2?
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $ta = [Type]::GetType("System.Management.Automation.TypeAccelerators")
41 | $ta::Get.Keys.GetEnumerator() | % {$arr = @()}{
42 | $arr += $($_ -ne 'accelerators')
43 | }{
44 | if (-not ($arr -contains 'False')) {
45 | $ta::Add('accelerators', $ta)
46 | }
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/check-installed-not-refreshed-after-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4960
10 | Published Date:
11 | Archived Date: 2014-03-07t19
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | $check.installed not refreshed after feature instlled
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $check = Get-WindowsFeature | Where-Object {$_.Name -eq "SNMP-Service"}
41 |
42 | If ($check.Installed -ne "True") {
43 | Add-WindowsFeature SNMP-Service
44 | }
45 |
46 | $check = Get-WindowsFeature | Where-Object {$_.Name -eq "SNMP-Service"}
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/custom-directory-in-UI.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: himanshu
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4163
10 | Published Date: 2015-05-17t10
11 | Archived Date: 2015-10-07t01
12 | ---
13 |
14 | # custom directory in ui -
15 |
16 | ## Description
17 |
18 | custom directory creation using ui in power shell
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | $name = Read-Host 'SSIS_DUMMY?'
42 | $E = $name
43 |
44 | $Location = "D:\MVCApplication\"
45 | New-Item -Path $Location -name $E -ItemType "directory"
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/datetime-Week.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: dale thompson
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6500
10 | Published Date: 2016-09-01t15
11 | Archived Date: 2016-09-03t23
12 | ---
13 |
14 | # [datetime].week -
15 |
16 | ## Description
17 |
18 | this bit of code adds a week scriptproperty to datetime objects. the property returns the week of the year based on the current cultural settings.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Update-TypeData -Force -TypeName DateTime -MemberType ScriptProperty -MemberName Week -Value {
41 | [System.Globalization.CultureInfo]$Culture = [System.Globalization.CultureInfo]::CurrentCulture
42 | return $Culture.Calendar.GetWeekOfYear($this, $Culture.DateTimeFormat.CalendarWeekRule, $Culture.DateTimeFormat.FirstDayOfWeek)
43 | }
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/df.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 428
10 | Published Date:
11 | Archived Date: 2010-12-15t11
12 | ---
13 |
14 | # df -
15 |
16 | ## Description
17 |
18 | a simple df (disk free) function for powershell
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function df ( $Path ) {
41 | if ( !$Path ) { $Path = (Get-Location -PSProvider FileSystem).ProviderPath }
42 | $Drive = (Get-Item $Path).Root -replace "\\"
43 | $Output = Get-WmiObject -Query "select freespace from win32_logicaldisk where deviceid = `'$drive`'"
44 | Write-Output "$($Output.FreeSpace / 1mb) MB"
45 | }
46 | `
47 |
48 |
--------------------------------------------------------------------------------
/docs/dir-mus-com-net.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ermias
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5023
10 | Published Date: 2014-03-26t13
11 | Archived Date: 2014-03-30t06
12 | ---
13 |
14 | # dir.mus@com.net -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/directories-tree.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4561
10 | Published Date: 2013-10-26t16
11 | Archived Date: 2013-11-04t14
12 | ---
13 |
14 | # directories tree -
15 |
16 | ## Description
17 |
18 | if ‘tree’ pocket has not been installed that you can use next script but note that it gets only directories.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #!/bin/bash
41 |
42 | if [ -z "$1" ]; then loc=$(pwd); else loc=$1; fi
43 | ls -aR $loc | grep ':$' | sed -e 's/:$//;s/[^-][^\/]*\//--/g;s/^/ /;s/-/|/'
44 | `
45 |
46 |
--------------------------------------------------------------------------------
/docs/export-migrations.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: steve
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5645
10 | Published Date: 2015-12-15t16
11 | Archived Date: 2015-02-17t17
12 | ---
13 |
14 | # export migrations -
15 |
16 | ## Description
17 |
18 | export all mailbox migration stats.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $Migrations = get-moverequest
41 |
42 | foreach ($migration in $migrations) {Get-MoveRequestStatistics $migration.alias -IncludeReport | select displayname,status,starttimestamp,completiontimestamp,overallduration,totalmailboxsize,totalmailboxitemcount} | export-csv -Delimiter ';' -NoTypeInformation -Force -Path 'C:\Users\Tester\Desktop\Migrationstats.csv'
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/get-roman.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: luis c
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6818
10 | Published Date: 2017-03-24t19
11 | Archived Date: 2017-04-08t01
12 | ---
13 |
14 | # get-roman -
15 |
16 | ## Description
17 |
18 | short powershell module to convert numbers to roman numerals
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-roman`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function get-roman ([int]$myNum)
41 | {
42 | if ($myNum -ge 4000 -or $myNum -le 0)
43 | {
44 | "$myNum is not a good one"
45 | } else {
46 | $myRomans = [Ordered]@{ M=1000;CM=900;D=500;CD=400;C=100;XC=90;L=50;XL=40;X=10;IX=9;V=5;IV=4;I=1 }
47 | foreach ($key in $myRomans.Keys)
48 | {
49 | while ($myNum -ge $myRomans.item($key))
50 | {
51 | }
52 | }
53 | $myOut
54 | }
55 | }
56 | `
57 |
58 |
--------------------------------------------------------------------------------
/docs/getmacs.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: qodosh
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 4903
10 | Published Date: 2014-02-16t05
11 | Archived Date: 2017-05-22t01
12 | ---
13 |
14 | # getmacs.ps1 -
15 |
16 | ## Description
17 |
18 | very basic script that gets mac addresses (netbios table) from a list of remote hosts.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | ###############################################################################################################################
41 | #
42 | $Servers = Get-Content 'C:\servers.txt'
43 | $log = 'c:\log.txt'
44 | foreach ($Server in $Servers)
45 | {
46 | nbtstat -a $Server >> $log
47 | }
48 | start $log
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/help-needed.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2304
10 | Published Date:
11 | Archived Date: 2010-10-20t09
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | help needed
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | hi
41 |
42 | i want a script in powershell that talks to the sharepoint and takes two arguments one is Ip address or server name other is config.xml file.
43 |
44 | It checks if server exists and if yes it asks for user name and password and display error to the user accordingly . also it checks for duplicate entries in config.xml file.
45 |
46 | any suggesions will be highly appreciated.
47 | `
48 |
49 |
--------------------------------------------------------------------------------
/docs/hoi.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ermias
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6185
10 | Published Date: 2016-01-21t20
11 | Archived Date: 2016-03-18t22
12 | ---
13 |
14 | # hoi -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/http-bestfreeipadgames.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: matt wilson
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2410
10 | Published Date: 2011-12-16t09
11 | Archived Date: 2016-08-13t22
12 | ---
13 |
14 | # http -
15 |
16 | ## Description
17 |
18 | a man is not old as long as he is seeking something. a man is not old until regrets take the place of dreams.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | A man is not old as long as he is seeking something. A man is not old until regrets take the place of dreams.
41 |
42 | -----------------------------------
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/http-harleydavidsonmot.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: matt wilson
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2403
10 | Published Date: 2011-12-13t13
11 | Archived Date: 2016-08-13t22
12 | ---
13 |
14 | # http -
15 |
16 | ## Description
17 |
18 | sow nothing, reap nothing.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Sow nothing, reap nothing.
41 |
42 | -----------------------------------
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/ipaupload.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: jiayuhui
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5912
10 | Published Date: 2015-06-29t03
11 | Archived Date: 2015-07-03t01
12 | ---
13 |
14 | # ipaupload -
15 |
16 | ## Description
17 |
18 | quick hard coded script for uploading a file to an ftp server.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $File = "D:\Dev\somefilename.zip"
41 | $ftp = "ftp://username:password@example.com/pub/incoming/somefilename.zip"
42 |
43 | "ftp url: $ftp"
44 |
45 | $webclient = New-Object System.Net.WebClient
46 | $uri = New-Object System.Uri($ftp)
47 |
48 | "Uploading $File..."
49 |
50 | $webclient.UploadFile($uri, $File)
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/julio-fernandez-inai-org.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ermias
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5859
10 | Published Date: 2015-05-14t23
11 | Archived Date: 2015-05-16t04
12 | ---
13 |
14 | # julio.fernandez@inai.org -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/memory-size.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5384
10 | Published Date: 2015-08-27t11
11 | Archived Date: 2015-01-31t20
12 | ---
13 |
14 | # memory size -
15 |
16 | ## Description
17 |
18 | very grateful to greg zakharov for this example. good luck you, greg, in search of work.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## function
33 |
34 | `get-ramlength`
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | function Get-RamLength {
41 | <#
42 | .NOTES
43 | Author: greg zakharov
44 | #>
45 |
46 | $raw = (
47 | reg query "HKLM\HARDWARE\RESOURCEMAP\System Resources\Physical Memory"
48 | )[-1][-1..-8]
49 | for ($i = 1; $i -lt $raw.Length; $i++) {
50 | $ram += $raw[$i..($i - 1)]
51 | $i++
52 | }
53 | '{0}Gb' -f [Math]::Round([Convert]::ToUInt32(-join $ram, 16) / 1Gb)
54 | }
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/powershell-ise-config.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 4.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2969
10 | Published Date: 2012-09-26t10
11 | Archived Date: 2017-05-22t04
12 | ---
13 |
14 | # powershell ise config -
15 |
16 | ## Description
17 |
18 | enable legacyv2runtimeactivation so that bitstransfer and sqlps will work in the new .net 4 powershell ise (this config file is required for powershell 3 ctp1 to work with those modules and other down-level .net 2 modules). save as c
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/powershell-rocks.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 606
10 | Published Date:
11 | Archived Date: 2008-09-26t19
12 | ---
13 |
14 | # powershell rocks -
15 |
16 | ## Description
17 |
18 | a proof in concept as to why posh rocks
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 |
42 | for($i = 1; $i -le 20; $i++)
43 | {
44 | $web = New-Object system.net.webclient
45 | $web.Headers.Add("user-agent", "powershell")
46 | $web.DownloadDataAsync("http://tinyurl.com/4aw2cd")
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/quick-hard-coded-script-for-.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author:
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5947
10 | Published Date:
11 | Archived Date: 2015-07-31t04
12 | ---
13 |
14 | # -
15 |
16 | ## Description
17 |
18 | quick hard coded script for uploading a file to an ftp server.
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $File = "D:\Dev\somefilename.zip"
41 | $ftp = "ftp://username:password@example.com/pub/incoming/somefilename.zip"
42 |
43 | "ftp url: $ftp"
44 |
45 | $webclient = New-Object System.Net.WebClient
46 | $uri = New-Object System.Uri($ftp)
47 |
48 | "Uploading $File..."
49 |
50 | $webclient.UploadFile($uri, $File)
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/reconfigure-ha.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: cody bunch
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 1169
10 | Published Date: 2009-06-23t07
11 | Archived Date: 2014-10-10t07
12 | ---
13 |
14 | # reconfigure-ha.ps1 -
15 |
16 | ## Description
17 |
18 | reconfigure-ha.ps1 – take a vmhost object from the pipeline and apply the ‘reconfigure ha host’ task
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | Process {
42 | if ( $_ -isnot [VMware.VimAutomation.Client20.VMHostImpl] ) {
43 | Write-Error "VMHost expected, skipping object in pipeline."
44 | continue
45 | }
46 | $vmhostView = $_ | Get-View
47 | $vmhostView.ReconfigureHostForDAS_Task()
48 | }
49 | `
50 |
51 |
--------------------------------------------------------------------------------
/docs/restore-LastSnapshot.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: txguy
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6159
10 | Published Date: 2016-12-31t19
11 | Archived Date: 2016-03-19t02
12 | ---
13 |
14 | # restore-lastsnapshot -
15 |
16 | ## Description
17 |
18 | revert to the last vmware snapshot with variables for vvcenter and vm
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 | restore-lastsnapshot -vcenter vcenter1 -vm vm1234
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | #
41 | #
42 | #
43 |
44 |
45 | param(
46 | [string]$vcenter,
47 | [string]$vm
48 | )
49 |
50 |
51 | connect-viserver -server $vcenter
52 | $snap = Get-Snapshot -VM $vm | Sort-Object -Property Created -Descending | Select -First 1
53 | Set-VM -VM $vm -SnapShot $snap -Confirm:$false
54 | start-vm -vm $vm
55 | `
56 |
57 |
--------------------------------------------------------------------------------
/docs/setprimaru.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ermias
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6145
10 | Published Date: 2016-12-21t19
11 | Archived Date: 2016-03-18t21
12 | ---
13 |
14 | # setprimaru -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/sqldom.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ietei
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6342
10 | Published Date: 2016-05-12t01
11 | Archived Date: 2016-05-18t07
12 | ---
13 |
14 | # sqldom -
15 |
16 | ## Description
17 |
18 | test post sqldom
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | $sqldom = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.TransactSql.ScriptDom");
41 |
42 | $sqldom.gettypes()
43 | `
44 |
45 |
--------------------------------------------------------------------------------
/docs/target-local.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ermias
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 2634
10 | Published Date: 2011-04-26t10
11 | Archived Date: 2016-05-16t10
12 | ---
13 |
14 | # target.local -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/teste-com-br.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: ermias
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6038
10 | Published Date: 2016-10-05t14
11 | Archived Date: 2016-05-17t16
12 | ---
13 |
14 | # @teste.com.br -
15 |
16 | ## Description
17 |
18 | add new smtp address from csv and set new address primary
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 |
41 | import-csv .\source.csv | foreach {
42 | $user = Get-Mailbox $_.alias
43 | $user.emailAddresses+= $_.addnewemailaddress
44 | $user.primarysmtpaddress = $_.addnewemailaddress
45 | Set-Mailbox $user -emailAddresses $user.emailAddresses
46 | set-Mailbox $user -PrimarySmtpAddress $user.primarysmtpaddress
47 | }
48 | `
49 |
50 |
--------------------------------------------------------------------------------
/docs/used-drive-letters.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: greg zakharov
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 5110
10 | Published Date: 2014-04-22t18
11 | Archived Date: 2014-04-26t17
12 | ---
13 |
14 | # used drive letters -
15 |
16 | ## Description
17 |
18 | fix
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | [Char[]](65..90) | ? {cmd /c 2`>nul @($_ + ':') `&`& echo $_}
41 | `
42 |
43 |
--------------------------------------------------------------------------------
/docs/validate-an-IP-address.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: mow01
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6592
10 | Published Date: 2017-10-25t01
11 | Archived Date: 2017-03-18t05
12 | ---
13 |
14 | # validate an ip address -
15 |
16 | ## Description
17 |
18 | really validates given ip address and returns true/false. the original script didn’t allow zeros in the ip address (eg
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | PARAM($IP=$(read-host "Enter any IP Address"))
41 |
42 |
43 |
44 |
45 | #[system.net.IPAddress]::tryparse($ip,[ref]$null)
46 |
47 |
48 | [ref]$a = $null
49 | [system.net.IPAddress]::tryparse($ip,$a)
50 | `
51 |
52 |
--------------------------------------------------------------------------------
/docs/wget.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: joel bennett
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 1.0
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 120
10 | Published Date: 2008-01-22t09
11 | Archived Date: 2017-04-30t10
12 | ---
13 |
14 | # wget -
15 |
16 | ## Description
17 |
18 | the simplest form of wget … will become get-fromweb or something …
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ## script
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | param([string]$url, [string]$path)
41 |
42 | if(!(Split-Path -parent $path) -or !(Test-Path -pathType Container (Split-Path -parent $path))) {
43 | $path = Join-Path $pwd (Split-Path -leaf $path)
44 | }
45 |
46 | "Downloading [$url]`nSaving at [$path]"
47 | $client = new-object System.Net.WebClient
48 | $client.DownloadFile( $url, $path )
49 |
50 | $path
51 | `
52 |
53 |
--------------------------------------------------------------------------------
/docs/whitebox.ps1.md:
--------------------------------------------------------------------------------
1 | ---
2 | Author: bsonposh
3 | Publisher:
4 | Copyright:
5 | Email:
6 | Version: 0.1
7 | Encoding: ascii
8 | License: cc0
9 | PoshCode ID: 6437
10 | Published Date: 2016-07-01t11
11 | Archived Date: 2016-10-15t17
12 | ---
13 |
14 | # whitebox -
15 |
16 | ## Description
17 |
18 | it gets the system environment variables from registry
19 |
20 | ## Comments
21 |
22 |
23 |
24 | ## Usage
25 |
26 |
27 |
28 | ## TODO
29 |
30 |
31 |
32 | ##
33 |
34 | ``
35 |
36 | ## Code
37 |
38 | `#
39 | #
40 | Param($srv=$env:ComputerName)
41 | $regKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine,$Srv)
42 | $key = $regKey.OpenSubkey("SYSTEM\CurrentControlSet\Control\Session Manager\Environment",$false)
43 | $key.GetValueNames() | Select-Object @{n="ValueName";e={$_}},@{n="Value";e={$key.GetValue($_)}}
44 | `
45 |
46 |
--------------------------------------------------------------------------------