[ADSI] Question
We have recently added VDI to our arsenal. I need to modify our build scripts to modify these. I swore this was working, and now it is not, but here is what is happening. I sure could use some...
View ArticleGetting the top left value in a csv file
Does anybody know how to get the top left value from a csv file? I use Import-CSV to get the file content. I need this for a kind of header validation where only this value is constant. Many thanks
View ArticleWriting to MSSQL database error Incorrect Syntax near '('
I have the following code below, I am trying to write the data to a table, but it keeps throwing up the following error. As you can see, I've tried several ways. I just can't find the issue.. Thank...
View ArticleParent Folder path
I need to reference a number of resources with paths relative to the script folder, and I am using $ScriptPath = Split-Path $script:MyInvocation.MyCommand.Path to establish the script path. I had tried...
View ArticleChanging the Remote Desktop Profile Path with Powershell
I am making a PowerShell script for automating user creation in the company I work in, but I have a problem. How can I set the "Remote Desktop Services Profile Path" through Powershell? I can set all...
View ArticleWhy does some data show up as blank or zero?
I have the script below which seems to work fine except that a couple of variables show zero or blank on output, but the editor's data browswer shows non-zero non-blank data. The properties...
View Articledeclare webservice variable types
Hi,How can I load the object types from a web service in Powershell?$url = http://wserver/v1.asmx?WSDL$ws = New-WebServiceProxy -uri $url -Namespace myWS$wsObj = New-Object -TypeName...
View ArticleVMM - add recources to user group
Hello,Is it possible to add recources (ie. virtual machine) to a VMM user group via powershell?Thanks
View ArticlePowerShell ISE doesn't flush stdout
Hello everyone, I'm having a little problem when running a console program in PowerShell ISE: when the program writes out a line in portions using flush, PowerShell won't show the line until the...
View ArticleGPO Folder redirection using Powershell
Dear,how can i configure a gpo for Folder Redirection using powershell.I would like to create gpo's with all kinds of folder redirection configurations using a script.Davy
View ArticlePSRemotingTransportException when invoking command on a distant server
Hello,I'm having some trouble when I try to call Invoke-Command in powershell on a distant server.I'm receiving a PSRemotingTransportException. It tells me that the user is either unknown or associated...
View ArticleRemoving user in DomainB from a group in DomainA
I am trying to remove a user in DomainB from a group in DomainA.So far, I have not been able to do so using powershell. $Tusr = Get-ADUser TestUser -server DomainB.company.com $grp = Get-ADGroup...
View ArticleServer2012: Set-ClusterScheduledTask + "Run with highest Priviledges" - ???
Hey there,I'm trying to fix a script we have to trim VSS copies on our Fileserver which is a Serve 2012 Failover Cluster. This has worked in the past, however I think it got messed up when I changed...
View Articleadd-pssnapin Microsoft.Exchange.Management.PowerShell.Admin
I have a script (below) that was designed to be used by people who do not have access to Exchange. The idea is to check if ActiveSync is enabled for the user, it gives the ability to enable or disable...
View ArticlePowerShell Exchange Command
Try to build a GUI for some mailbox administration stuff..... The command below produces syntax errors.Get-Mailbox $dlist.alias -Resultsize Unlimited | Search-Mailbox -SearchQuery...
View ArticleActive Directory/Powershell Name Formatting - Proper Title Case & processing
I'm getting a nightly feed from our HR system with user information. I'm trying to use this feed to create and maintain Active Directory. The folks that enter the data are a little less than...
View ArticleResults to table powershell
in our monitoring system we havent installed windows excel hence we are unble to run the below script. i am new to powershell can any one help me to change the scrit to update the results to sql server...
View ArticleMove Computer to a different OU without AD cmdlets using PowerShell
Hello. Struggling with understanding [ADSI] yet again. Just when I think I get it, I don't. So I wrote this PowerShell code yesterday which moves a Computer from the ComputersOU to the OU I specify....
View ArticleExporting Mailbox Attributes
i need to export mailbox attributes for all the mailboxes . This attributes includes; first name, last name, display name, alias, primary smtp name, department, last accesed /active status. Please...
View Article