Get-ADGroupMember from Different Domain
Hi, i am trying to list the users that are members of an AD group in a different Domain.I think my script was working in the past, so not sure why it has stopped working...I use credentials from the...
View Article.NET 2.0 Errors and Powershell Crashing on Server 2008 R2 and Windows 7 SP1
I logged into my exchange server a few days ago and launched the Exchange Management Shell (EMS). It immediately crashed after opening. I then tried to open a powershell prompt. It also immediately...
View ArticlePowerShell Logon Script
I have a powershell logon script that is governed by group policy.It works great except one thing.I have this awesome little piece that goes something like, $user = (GetADUser -Identity $env:USERNAME...
View ArticleWhy does the following example break and not continue
Hello, I have already found a workaround using a different looping technique to complete a task I am trying to perform, but am wondering if anyone could provide some insight as to why the following...
View ArticleLogon Scripts: Active Directory: Get-ADUser
Logon script:1. Gets identity from AD (Get-ADUser)2. checks for a match of their membership.3. If there is a match, paints a shortcut.4. If no match, no shortcut.The problem with Get-ADUser is taht you...
View Articleconcatenate a string with the results of group-object
I wrote a script to get the 10 most recent entries in the Windows application log. It works fine, but I would prefer to format the output differently.The output looks like this:server1\Count Name-----...
View ArticleIssues with Backup-GPO Scheduled Task as a non-admin account
I'm having an issue trying to get a daily backup of domain GPO's from a non-administrative account. I'm using Powershell 2.0, the Backup-GPO cmdlet runs fine as a standard user, but when I run the same...
View ArticleMoving files and getting results
I'm new to powershell and am writing my first script. So far what I've got is working like I need it to but I want to improve on it. Right now I've got files that are created everyday and I want to be...
View ArticleCreating Variables From Text File
Hello a little new to powershell and have banging my head on the wall trying to get this working.I have a text file (where the numbers of lines will change everytime) that will contain AD groups. Lets...
View ArticleStuck and not sure what to do next
This is just the event area that I need help in. My csv file typically has two dates in the file. I need to be able to take the measurement reading for the most current (recent) date and place it in a...
View ArticleWhy wont this RUN and Set a New-Service..?
PS C:\WINDOWS\system32> New-Service -Name RunSafe -BinaryPathName C:\Users\3steveco33_01\Skydrive\Documents\Adminstartup.ps1 -DisplayName 'Active Protraction Service' -Description Safety and...
View Articlecorrect if statement to specify executing on the basis of operating system...
hi Guysi am creating a general PS script which i want to execute it on my network systems.this is a general script & i don't want to create separate script for each of the following Operating...
View Articleexecuting 2nd command after server rebooted & related services started
hi friendsi am creating a PS script containg two lines:the first line executes dcpromo /unattend:c:\answerfile.txt to create a new domain controllerthe second line will disable domain password...
View Articleunable to set ip address via enableStatic method on wmiobject
hi friendsi am creating a powershell script which performs many customization which one of them is setting ip address on my only network adapter which its default name is Ethernet in windows server...
View ArticleAdding custom Columns to exported CSV file?
Hi all!Im writing a script that will connect to a series of remote computers and retrive hardware and software info such as CPU, RAM size, HDD size etc and have that info exported to seperate CSV...
View ArticleImport CSV into Active Directory using GUI (Made in Sapien Powershell Studio)...
ERROR: A null key is not allowed in a hash literal. ad_User_Import.psf (43): ERROR: At Line: 43 char: 4 ERROR: + $FirstName = $USER.FirstName ERROR: + ~~~~~~~~~~ ERROR: + CategoryInfo :...
View Articleget total disk activity
Hi,how can i get the total disk activity per run like i see in resource monitor?THX
View ArticleCopy and rename files
Hi folks, Let me explain the situation. FolderA and FolderB had identical data (the same files and folders/subfolders structure) in them as they were in sync before. The sync between them has been...
View ArticleForeach loop help
I am trying to create a foreach loop that takes all txt files in Program Files and print only the names of files over 10KB. This is what I got:foreach($file in (Get-ChildItem -Path "c:\Program Files"...
View ArticleGMail Powershell Issue with Dates Using GMail.PS Module
I'm using the GMail.PS Module found here and can't get it to properly filter emails with the -after or -on switch. I tried this on Powershell 2 and Powershell 4 on Windows Server 2008 and Windows 7...
View Article