Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Find Computers AD Group memberships - How to?

Hi Everyone,I have a list of computers that I need to find the AD Group Memberships and output to csv.How can I do this from PS?Thanks, MaelitoMaelito

View Article


create ad accounts from info obtained from a sql query

We have a visual basic script that runs the following sql command:select Accountid, username, password, firstname, left(middlename, 1) + '.' as mi, lastname,  email as email, campusid, addressid,...

View Article


using invoke-command to install certifications unuseable

Hi,EverybodyI want to install some certificates in a domain from a domain controller for RDS. The installation is successful, but when deploying remoteApp programs, the RDS complains the certificate is...

View Article

Manage Local Group Policy remotely with powershell

All...I'm looking for some way to make a single change to a local group policy on about 100 servers, using powershell.Example, my Standard Group Policy was recently changed:"Specify intranet Microsoft...

View Article

Add-Computer cmdlet, PowerShell v2 support for the -Server parameter

Hi Forums,Folks in my team have built PowerShell scripts to Add Computer as members of a Domain. One of thousands custom packages they do in SCCM. We are in a scenario where providing the...

View Article


about Remove-ADGroupMember

A group was in domain 1,and groupmembers were in domain 2,how do I use cmd “Remove-ADGroupMember” to remove these members in this group?

View Article

Image may be NSFW.
Clik here to view.

Identification prompt with encrypted password...

I want to install a service with a GPO at the user logon (so it is deployed with elevated administrator rights) and with a domain admin account.So, I have encrypted the password on the network in a txt...

View Article

Executing powershell scripts via Task Scheduler

Hi,I have a powershell script that I wrote that when executed from the shell works fine but when executed from task scheduler does not work.In my script, an email is sent out based on the results of...

View Article


Running Powershell code on remote machine using C# - EXPERT HELP NEEDED

Hi guyz,i facing this issue from a long time.Im Uisng Powershell for remote operations , and sometimes for installations and uninstallations also.The problem , is for example, im remotely installing...

View Article


How to exclude results in a XML event viewer filter.

Hello, Im trying to create a custom filter to return only files that are deleted. Problem is I do not care about .tmp files created and removed by MS Office. How can I exclude any result that has an...

View Article

How do I pass a Set/p variable from a .cmd file to Powershell Command?

I need to join a customer's domain with our computers.  We won't know the domain name or the domain controller name for the user credentials until we arrive on-site.In my Powershell script I have: cmd...

View Article

Has anyone had to present to their boss's how and why you want to upgrade...

I will have to present to a technology committee the how's and why's about the upgrade. I am starting to work on it, and it would be helpful to see what others have talked about and what you've...

View Article

Bulk-create printer objects on windows 2008 R2 x64 print servers using...

Hi,I have an issue on a 2008 Server R2 x64 when trying to create a printer with this Powershell script:function CreatePrinter {$server = $args[0]$print =...

View Article


how to know the changeset used in my local folder

My local machines has folders mapped to different changesets from TFS.With powershell, I've been able to get the latest changeset from TFS, but that is NOT what I want. I want to get the current...

View Article

custom .NET class with serialization method throw exception

I created a custom class using Add-Type and it's defined by C# code.  Because of the limitations of the export and import CliXml cmdlets I created a serialize and deserialize method on the class.  This...

View Article


Error with New-ADUser command.

Hello everyone,  just starting with powershell and must create a a few hundred users.  managed to write something like code below  but it generates error below.  any help is appreciated. New-ADUser :...

View Article

Create folder in Outlook and move contents to it

Hi allWe have Outlook 2003, 2007 and 2010 and Exchange 2003 and the followingWe need to create a folder in Outlook called "whatever" and move all the contents of the Sent Items folder into the folder...

View Article


Export Microsoft Windows Backup to .txt

Hello,i am looking for a solution to export the Microsoft-Windows-Backup to network-drive with the .txt extension.When trying to doing get-eventlog the only types that are available are logs like...

View Article

Powershell significant slower on 2008 R2 compared to 2008

simple ps script speedtest.ps1 :$i = 1 do {Write-Host $i; $i++} until ($i -gt 50000)Counting with : Measure-Command -Expression { speedtest.ps1 }Running 20+ times on different virtual 2008 servers :...

View Article

Script block literals are not allowed in restricted language mode or a Data...

Here i execute power shell Scripts by using in C#:PSCredential psc = new PSCredential(@"domainname\username", SecurePswd); WSManConnectionInfo wsmConn = new WSManConnectionInfo(new Uri(strSystemURI),...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>