How to set a time and when the time is up , a powershell script will be...
I want to set a time and the time contains year , month , day of the month , hour , minute , second .when the time I set is up , a specific powershell script will start to run?How to achieve this ?
View ArticlePower Shell script to get the manager for eah users and put them in a...
I created a power shell scrip to get users and for each user get the manager and put him in a specific group but when I am trying to run it I got an...
View Articletable to xml conversion
Hi I'm havving the following tableSystem Administrator Historical Database CCLAB602BI\TENANTDB NULL SystemAdministrator Tenant Historical Database CCLAB602BI\TENANTDB NULL...
View Articletry and catch commands...
hi trying to display a custom message on screen if error occurs but no success... the option works great with get-process for example. but not withGet-WmiObject here are the results: when i change...
View ArticleZipping files
Hi,Is there a better way in powershell other that using the Community Extensions that includes write-zip? I've found this post and it looks simple but I cant install the Extensions as its not my...
View ArticleSet-aduser
I was trying to create a customize attribute which is join date. i end up with some error. i can create the user account as you can see in the fist command. and then when i try to add the set-aduser...
View Article2 forms - one opens the other, how to keep 1st active whilst 2nd open?
HiI have one powershell form the launches another from a button. When the 2nd form is active, the 1st one becomes unresponsive.Searching on the net reveals info relating to the...
View ArticleCounting all objects in AD is not updated after adding a user
HiI am running the command to count all of my AD objectsThe question is, why when running the command after adding a user, it does not get updated in the following command: Get-ADObject -Filter {name...
View ArticleScript misbehaving when scheduled
hi all,so i created the bottom half of the script. when run in interactive mode its fine. it groups the files in one zip file where the last modified date is in the same day. my problem is when i...
View ArticleSID mugrate issue
I am not able to migrate the SID to the target domain using ADMT, but the user accounts get successfully migrated. In the target domain the migrated user's SID is different compared to the user's SID...
View ArticleSimply Put ... I don't get it:
I am trying to gain a better understanding of Powershell and I don't have a programming/development type background. In addition I've only been through the basic PS Essentials MS training course....
View ArticleUsing WMI to return multiple ipv4 addresses
The following block of code works great for returning multiple active IP addresses on a machine:gwmi Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName . | Select-Object...
View ArticleScript to Provision SharePoint MySites Prior to User Login
Hi,I have tried to use a couple of the different scripts I have found on the web to automatically find all the user profiles that have been synchronized from AD and provision the My Sites prior to the...
View Articledsacls and output width
Is there a way to force an output width when using a command-line command in PowerShell? E.G. I'm using dsacls.exe and the output is crowded enough that for some entries it's putting the relevant...
View ArticleNew-DfsnFolder sets incorrect -TargetPath when linking below a root share
Environment:Management station OS: Windows 8Clustered File server (DFS Target) OS: Windows server 2012 datacenterDFS root OS: Windows Server 2008 R2Powershell: Name Value...
View Articlepicture looking compress in email
I have a powershell script that embedds (not attaches) a picture and sends an email. The picture has increased now to 1500x5000 pixels and now I'm seeing that the pictures lenth gets compressed and it...
View Articlehow check Powershell Version ?
Hi...allI installed SQL Server 2008 Dev edition on XP sp3.(It Installs WPS)I am very much new to PS..I started testing my Installation.For example, I typed Get-PS and press the Tab key , the following...
View ArticleUnable to import Active Directory Module
As the title suggest I am running into issues importing the Active Directory module in PowerShell.I am running the commands from a Remote Session on the server. The client computer that is doing the...
View ArticlePowershell best way to pull the details from IBM Chassis ( IBM Management...
Hi All,I am trying to pull the information from IBM Chassis ( Management Module).I am trying to use xmlhttp as the authentication popups. ---$user = "user" $pwd = "Pwd" $url =...
View Articlemove files, not copy paste then delete source
i'm scripting a file share restructure. I have noticed in explorer that when I ctrl+x a large file\directory and ctrl+v it to the same mapped drive, the move is instant where as if I did it from one...
View Article