Getting List of WMI Properties into Hash Table
Hello All;I was playing around with WMI and Hash Tables tonight (yes I should really get out more often), and came up with this way of getting WMI properties into a Hash Table, I have not seen it done...
View ArticleNEw-service is correctly created but does not start
hi !I used this command : new-service, like it is shown in the Posh help. The service is correctly installed but it can't start, or it starts and stops quickly... EventLog returns :-Error event 7009 :...
View ArticleTimeout when runnig an sql command with powershell
Hi,I run an sql command using Powershell to create a database. The command takes around 1 minute when I run it from Management Studio. With powershell it times out with the error below. I use that...
View ArticleUsing powershell for windows 2008 R2 Cluster Management
Is there a way to use Powershell for Windows 2008 R2 Cluster Management? I would like to be able to know what file shares as well as SQL instances are on which nodes in my clusters. I also would like...
View ArticleAdd hebrew to powershell
My mailboxes have hebrew names. When i want to view or use hebrew at the exchange it show up as gibberish. So i cannot use many of the commands. How can i set the exchange shell to use hebrew?
View ArticleWrong Syntax ? $dateAndTime = $(get-date -format MMddyyHHmmss)
FolksI have this line as a part of my powershell SQL Job.This command runs fine within powershell or PowerShell ISE. but not as a job in SQL.Any ideas?$dateAndTime = $(get-date -format MMddyyHHmmss)is...
View ArticlePopulating a table with data from a CSV
I'm trying to import data into a table I have created in SQL2008 Express, I've used the same scripts for other tables and they have worked, I get the following error:Invoke-Sqlcmd : Invalid object name...
View ArticleSplitting a string
Why can't a string be split on each ocurrence char '|' ? For instance:'12345,67890,ABCDE,FGHIJ'-split',' # OK"`n`n"'12345|67890|ABCDE|FGHIJ' -split '|' # NOT OK"`n`n""12345`|67890`|ABCDE`|FGHIJ"...
View ArticleGet new windows of a certain type
Hi,I'm trying to do something similar to Autohotkey's IfwinExist, which means I'm trying to run an action whenever a window of a certain type is opened.I don't really know how to go about it.I tried...
View ArticleLast Time Domain Admins Changed Password
My manager just asked me for a report for all domain admins in a group called Domain Admins. The report should include when the last time all members of the group changed their password. I am new to...
View ArticlePowershell XML - Inserting A Nested Node Under a Particular Parent
Editing original post since I feel I need a more focused question. The XML Template I'm using is:$template = @'<?xml version="1.0" encoding="utf-8"?><AppHosts schemaVersion="1">...
View ArticlePowerShellIDE 1.3 download
Where ever I go for PowerShellIDE 1.3 download I get directed to this site powershell.combut I dont see any pleace I can donload this Editor.any Idea?Malkoo
View ArticleCan anyone tell me how...
To update PowerShell to Add the .MSDN() scriptmethod to any given class.Let me explain - last June I was in Orlando listening to yet another outstanding talk by Jeffrey Snover (well I think it was him...
View ArticleQuerying WMI, closing connection
I wrote a script when I was relatively new to Powershell to query our servers and write the results to a SharePoint list. The script makes multiple WMI queries and compiles that information. I have...
View Articleusing Quest CMDlets to return all groups that contain disabled users
Hi all, i have a new question :)i wish to return all the groups in a domain that have disabled members. I've looked at doing this via Get-Qadgroup | Get-Qadgroupmember but i couldn't get it to work. So...
View ArticleAD "clean-up" scripts
I'm trying to create (if one doesn't already exist) a couple of PS scripts.1.) Recurse the home directory folders on the server (i.e., \\server_name\share\jsmith , \\server_name\share\tjones etc.) and...
View ArticleNeed to modify local user account
I need to modify local user accounts on several servers to reflect a local logon script for those users. These are existing accounts that need to have the script added - currently it is blank.We have...
View ArticleWindows PowerShell™: Essential Admin Scripts (Part 1)
This two part series covers a number of Powershell scripts to assist with a number of administrative tasks. Read More
View ArticleDATETIME question
HelloI am using Windows 7, all the language and regional settings are set to UK i.e. under control panel regional settings short date format is set to dd/mm/yyyy as one would expect.however Powershell...
View ArticleXenDesktop Powershell SDK Script Examples – Part 1
I saw a post on the support forum today asking for help with the XenDesktop PowerShell SDK. I came up with a quick script to help them out, which inspired me to share some XD5 script examples. If...
View Article