Tag
script
16 articles · Page 2
-
Sort Windows Network Adapter by PCI Slot via PowerShell
If you work with Windows, Windows Server or Hyper-V you know that before Windows Server 2012 Windows named the network adapters randomly. This was a huge deal if you were trying to automate deployment of servers…
-
Configure Hyper-V Host Network Adapters Like A Boss
If you are working a lot with Hyper-V and Hyper-V Clustering you know that something that takes a lot of time is configure the Hyper-V Host Network Adapters. First because most of the time you have a lot…
-
Run Remote Powershell Commands on multiple standalone Computers
With this little Powershell Script you can run Powershell Commands on multiple Remotehosts even if those are not in an Active Directory. # Config $Servers = @(“Server01”, Server02) $Cred = Get-Credential # Add Credentials for all…
-
Powershell: Send Tweet
For some reason your Powershell script should send a Tweet. With this function Powershell will send a message to Twitter. function Send-Tweet($Message) { #Twitter Login $Twitter_UserName = “yourname” $Twitter_Password = “yourpassword” $Twitter_URL = “https://twitter.com/statuses/update.xml?status=” $Twitter_Request =…
-
Powershell: Invoke-Expression
Using the Invoke-Expression Cmdlet: The Invoke-Expression cmdlet provides one way to run a script from within Windows PowerShell. Invoke-Expression c:\scripts\test.ps1 or & c:\scripts\test.ps1 And you also can run a function in your Powershell Script by a variable.…


