Quantcast
Browsing all 21975 articles
Browse latest View live

[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 Article


Getting 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 Article


Writing 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 Article

Parent 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 Article

Changing 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 Article


Why 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 Article

declare 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 Article

VMM - add recources to user group

Hello,Is it possible to add recources (ie. virtual machine) to a VMM user group via powershell?Thanks

View Article


PowerShell 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 Article


GPO 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 Article

PSRemotingTransportException 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 Article

Removing 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 Article

Server2012: 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 Article


Image may be NSFW.
Clik here to view.

Define site CSS

Hi, is it possible to define the CSS to be used by a site? thanks

View Article

add-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 Article


PowerShell 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 Article

Active 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 Article


Results 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 Article

Move 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 Article

Exporting 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
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>