0
votes
2answers
401 views

Add-DistributionGroupMember - cannot find my group

I'm using the following script: import-csv "C:\users\USERNAME\desktop\dl.csv" | foreach {add-distributiongroupmember -id "My Group" -member $_.PrimarySMTPAddress} However it returns: ...
1
vote
1answer
938 views

Script to export to excel

I Have below script:-- looking for help to convert the output to excel format $servers = get-content “c:\list.txt” foreach ($server in $servers) { $server $command = “quser /server:” + $server ...
0
votes
1answer
135 views

PowerShell Send Popup Message to users in group

I have this PS code: PowerShell -NoProfile -NonInteractive -Command [reflection.assembly]::loadwithpartialname('system.windows.forms'); [system.Windows.Forms.MessageBox]::show('Reminder: Updates) ...
0
votes
0answers
20 views

Powershell - read list and output gwmi contents to separate file

I am trying to use WMI to get the hostname, IP and MAC address from all computers in the domain and store them in a text file. When I run my code, I receive the following error: gwmi : The RPC ...
0
votes
0answers
47 views

Set logonworkstations attribute from script

So, I am trying to write a PS script to query the available logon workstations for an account; then (comma) delimit that list. I am then trying to add to that (cdl), then perform a set-adobject to put ...
0
votes
0answers
124 views

Import-Module error

So i installed the SMLets.SP1.X86 for my SCSM 2010 SP1, when i open my windows powershell prompt and type "Import-Module SmLets" i get; http://smlets.codeplex.com/releases/view/84853 "ImportModule : ...