Capture two digit pairs from a text
I want to capture all two digits from the following header file:
#define KEYMAP( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0...
4 years ago
Get-Date inside Where or Where-Object
I have this
$web = Get-SPWeb "http://sharepoint/mysubsite"
$list=$web.Lists["Scanned Documents"]
foreach ($item in $list.Items | where {$_.Indicator ...
4 years ago
Append Member/Column to PSObject
I'm looking for a way to add an extra member to an object in PowerShell without creating a new object and looping.
Typically when I run a script it ...
4 years ago
Unable to load PowerShell Script Module
I am trying to load PowerShell Script Module. Below is the step I am following
I have created 2 files under folder "C:\windows\system32\WindowsPowerS...
4 years ago
not getting output from receive job
The variable $var is blank when I run this script:
function FOO { write-output "HEY" }
$var = Start-Job -ScriptBlock { ${function:FOO} } | Wait-Job ...
4 years ago
Unable to pipe cmdlet objects in cmd
i am using this powershell command to fetch a particular user profile
"Get-WmiObject -Class Win32_UserProfile | Where-Object {$_.LocalPath -eq 'C:\U...
4 years ago
.NET API for DirectAcces status
we are currently developing a .NET application that needs to know the Microsoft DirectAccess connection state. I know it is possible to query the stat...
4 years ago
Read HKEY_USERS and HKEY_CURRENT_USERS
$strIPAddrTmp = "172.28.27.200"
$strKeyIEConnections = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\"
$strRegType = [Micro...
4 years ago
Change some VM properties via PowerShell
I want to change some of my VM Properties according to a CSV.
I have problem with Assigning memory to my VM.
What is wrong in my code?
The Error say...
4 years ago