How to find Screen Resolution for my Win8 Tablet/Notebook system using...
Hi, How can i find Screen resolution of my Windows 8 tablet/notebook system using WMI class. I have tried Win32_desktopmonitor, Win32_displayconfiguration & win32_videocontroller but none of them...
View ArticleHow to handle close event of PowerShell window if user clicks on Close('X')...
I want to run some code before PowerShell window is closed. For this I tried: PS > register-engineevent PowerShell.Exiting -action {get-process | out-file c:\work\powershellexiteventcalled.txt} It...
View ArticleAdd timeout to this script?
Hi. Im using a script to check availability of a url. It works well, but I would like to have a timeout in the script. The script checks the site ever 15 mins and I want the script to sent out email if...
View ArticlePS script to rename folder on multiple servers
Hi. Sometimes I need to rename some user folders on our CTX servers. For this purpose im thinking of making a PS script to do the job for me. This is what I want the script to do: rename...
View ArticleAdd Code Block Component (Commentary)
hi, Please, how can I add any commentary block in en XML file. # In en start script I no! $test = "<anys> <any/> <!-- ##### --> <any/>...
View ArticleSlipt quated word using regular expression
Hi, i have a requirement to slip the string for ex string word= "a=2 b=3 text=\"test regular expresion : \" d=9"; if i use the standard string slipt operation string[] result = word.Slipt(' ')';...
View ArticleGetting array columns, only display second column
Hi, I have a script that will obtain the ip of a server or the gateway depending if they are also in a variable or not. $totalservers = "server1","server2,"server3" $gwserver = "server2" So it will get...
View ArticlePowerShell Custom PSSnapIn deployment failure
Hello, I created a sample of custom PSSnapin, and I want to deploy it, the project was created as Class Library project, with signed key... The project was containing the following code:...
View ArticleHelp Exporting to CSV
Hi, I need to export publicdelegates to CSV file, unfortunately though I need it to export the ntaccountname. $a= get-qaduser -SizeLimit 0 -searchroot "OU" -SearchScope Subtree -ldapfilter '(mail=*)'...
View ArticleSFTP using only powershell
Hi Guys, Is there any direct way from powershell to download file from SFTP (Secure FTP), without using any third party application such as: Rebex or Winscp. A script that follows all required steps...
View ArticleNotification when outlook email arrives
Hi, I've written a small script that will hopefully run a taskbar alert notification when an email arrives in my inbox. So far all it does is searches through an inbox folder and calls the function if...
View ArticleUpload Multiple Folders to same SharePoint Folders
I'm trying to upload folder contents to their respective folders in our SharePoint site. Is there a PowerShell script that will work with multiple folders and files? The only ones I've seen do it file...
View ArticleScript to detect GPO linked but not enabled
Hi folks, I need help to find which one is linked but not enabled. Actually im trying like this : [xml]$GPOReport = (get-gporeport -name MY_GPO -ReportType xml) Then if I type : $GPOReport.GPO I get :...
View ArticleHow important to know the .net types to Learn Powershell
Hello experts, I am new to powershell , I need to know how important to know .net types and methods to master powershell. I dont have prior knowledge of .net or any programming langaure. Know If I...
View ArticleParse JSON file in PowerShell
I am writing a script to manage public folder permissions and would like to parse a JSON file to get the values. Here's a sample file. '\Technology': {recursive: 'yes', user:...
View ArticlePowerShell Scripting help.....
Folks: I need help with a PowerShell script. I have the following subfolders under the 'Client' folder (BFA, APHA, MLFE....) and we will be adding more later as and when new clients are added....
View ArticleExchange 2010, get database copy size
This is weird question and I'll probably understand Replay Lag Time better when someone answers it :). Our Exchange 2010 Environment has 26 databases (still a 2010 test environment). Each database has...
View ArticleLaunching Powershell gives 80070002 on Windows 8 64 bit
I have installed a brand new instance of Windows 8 on my 64 bit laptop. When I try to launch the pre-installed Windows Powershell (or the Azure Powershell window) i get an exception 80070002 and all it...
View Articlea minor lack of symmetry ;-)
Powershell provides these looping constructs (among others): do {code} while (condition) do {code} until (condition) these types of loops are always executed at least once, because the test is...
View Articlesetting upn AND suffix with powershell
Hello Technet, I'm trying to set UPN for multiple users, which I can acheive. But, I would also like the suffix to be set. So far I havent been able to figure out the last part. The current command I'm...
View Article