Category : powershell

Here is a very simplified version of Powershell script I’d like to use to return ADUser properties (in a CSV) such as name, givenName, Office etc for users in a given OU. [void][Reflection.Assembly]::LoadWithPartialName(‘Microsoft.VisualBasic’) $title = ‘Get-ADUser Properties’ $msg = ‘Enter desired User properties, each seperated by a comma:’ $default = "name, office" $propertiesSought = [Microsoft.VisualBasic.Interaction]::InputBox($msg, ..

Read more

Strange behavior, i working on configuring Kafka broker on my home server PC and trying to connect from another computer over wifi. The firewall port is opened on 9092 using following command netsh advfirewall firewall add rule name="TCP Port 9092" dir=in action=allow protocol=TCP localport=9092 However when i try to use Test-NetConnection to test the port ..

Read more

I’m trying to use this function to monitor BSOD remotely I know I have to add a parameter of computername just not sure where Function Get-BSODInfo{ try { Invoke-WebRequest -Uri "https://www.nirsoft.net/utils/bluescreenview.zip" -OutFile "$($ENV:Temp)bluescreeview.zip" Expand-Archive "$($ENV:Temp)bluescreeview.zip" -DestinationPath "$($ENV:Temp)" -Force Start-Process -FilePath "$($ENV:Temp)Bluescreenview.exe" -ArgumentList "/scomma `"$($ENV:Temp)Export.csv`"" -Wait } catch { Write-Host "BSODView Command has Failed: $($_.Exception.Message)" exit ..

Read more