how to find serial number of imac's on AD via powershell
hi GuysHow do you find serial number if iMAc added to our AD domain via poweshell?I was trying following powershell command ., But not getting serial no. Is is possibe to get inventroy of...
View Articleforeach with copy-item help
Powershell$ErrorActionPreference="SilentlyContinue"Stop-Transcript|out-null$ErrorActionPreference="Continue"Clear-HostStart-Transcript-pathC:\output.txt-appendSet-LocationD:\$names=Import-CSVD:\Names.c...
View ArticleEnabling PS Remoting Remotely
I used PSEXEC to enable PSRemoting on two W7 computers and I received a successful message. When I TEST-WSMAN I get this....
View ArticleUnused mailboxes in GAL
Hi allI have run a report for unused AD accounts (not logged onto for over a year) via AD Tidy in our environment and have come up with lots of results. I have also run a dsquery script to produce a...
View ArticleHow do I use this object?
I'm trying to create a script to update some applications. Yes I know there are much more efficient ways of doing this (GPO, PDQDeploy, etc) but I'm not allowed to use these methods. Long story I would...
View ArticleParse existing csv to filter out old AD users with Get-ADUser
PowershellImport-CsvC:\username.csv|ForEach-Object(Get-ADUser$_.Username-Propertiesdisplayname|Export-CsvC:\usernames.csvHello people, I have a csv with AD users. I'm certain that there is quite a few...
View ArticleSetting NTFS Permissions and Breaking Inheritance from Parent
I've been trying to reset permissions on Home directories that got screwed up when we moved to a new server cluster in a new datacenter, but I'm running into a brick wall. I've tried a couple of...
View ArticlePowershell: Can you see who last accessed a file?
I've used powershell very few times. Usually to get information on where files are located and pipe out a csv file to review them.Now however I need to know who last accessed those files. When I look...
View ArticleNeed a little powershell help with copying files to multiple remote computers
I'm needing to copy files to several remote computers. First I create a backup, then I want to copy the current files tothe backup folder that gets createdbefore copying and replacing with the new...
View ArticlePowershell Reboot without a script
I've put Task Scheduler tasks to launch Powershell as a program and execute Reboot-Computer -force. Now this works well, however it ends up throwing an error for the Task, 0x103 and i get: "Task...
View ArticlePowershell Tutorials & Resources
We just released a couple of blog tutorials and info resourcesthat go over simple tasks and commands such as setting a date & time as well as working with cmdlets. Check them out and let me know...
View ArticleGet-Wmiobject not retuurning all vales from -namespace root\CIMV2
I have been using a modified version of the script in this site that lists .PST files on remote computers and the script is great except it doesn't find all the .PST...
View ArticlePowershell Create Virtual Machine SCVMM Error!!
Hi guys, I've got this PSscript to create virtual machines but it's not working to how I want it, I keep getting an error (attached)...
View ArticlePowerShell script for looking at files and removing needed pieces
Hi:I have been asked to use Notepad++ (using Find in Files) to go through 538 Crystal Reports files that are currently in a directory named "SM Reports" and look for the string "Select (That's quote,...
View ArticleNeed guidance on how to script something
Im in the process of setting up a nightly data sync between two separate systems we use here in our school district. The system im pulling data from is our school attendance system and I need to import...
View ArticleAccess device manager from powershell
Hi Spiceheads,At the place I work we recently started using SCCM which I greatly enjoy. One particular feature I enjoy more than others is the ability to launch an interactive command prompt on remote...
View ArticleHelp with Powershell Script to Monitor Folder and Email Back a Specific Document
Hello! New to Powershell and could use some help. I've looked through a lot of posts, some here, and have found 2 scripts that each do a part of what I need done. I'm having trouble combining them to...
View ArticleRunning a Exchange PowerShell script that calls another EXC powershell script
Hi folks,I am trying to setup a scheduled task to run an powershell script that can only execute inside Exchange PowerShell. This script also calls another Exchange PowerShell script. Has anybody ever...
View ArticleHow to launch a PS window and automatically connect to AD?
Good Friday Morning All!So in an effort to learn and get used to PowerShell I want to start doing my more mundane tasks using PS instead of remote desktop and one of those mundane tasks is to unlock...
View Article