Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Reply To: Modify Custom AD attribute

PS C:\Users\songstadw> set-adobject -Identity “526d1e62-f3b7-47ca-ad8d-8061209c0e3b” -replace @{mail=”glenjohn@fabrikam.com”} works. (it is using a well known attribute… However, both -replace and...

View Article


Reply To: Sort a list but have 2 specific objects at the top

I think I got it. . . # Put the 2 I want on top of a temp file “peach” | Out-File .\step2.txt -Force “grapefruit” | Out-File .\step2.txt -Append # Get the list I can’t control and append it after my...

View Article


Exchange – Trying to get list of all users with mobile devices.

I’m running Exchange 2010 SP3. I’m trying to make an export that will tell me what users in my origanization are using active sync, and how perhaps have many devices they have. I would imagine an easy...

View Article

Reply To: Exchange – Trying to get list of all users with mobile devices.

Sounds like you want exactly what is described in example 2 from the Get-ActiveSyncDeviceStatistics help: EXAMPLE 2 This example uses the Get-CASMailbox cmdlet to determine who in the organization has...

View Article

Reply To: Exchange – Trying to get list of all users with mobile devices.

Just to add to that last comment, it seems like pipelining in a mailbox object doesn’t work because it takes the identity of that mailbox and tries to find it as if it were an ActiveSync device....

View Article


Reply To: Downloading Tables from webpages

ok I Have got the following: $ie = New-Object -com “InternetExplorer.Application” $ie.navigate(“http://www.google.co.uk”) $doc = $ie.Document ($doc.getElementsByTagName(“table”))|%{$_.innerText} |...

View Article

Reply To: Exchange – Trying to get list of all users with mobile devices.

I seem to get problems with hasactivesyncdevicepartnership. I get the following error. Invoke-Command : Cannot bind parameter ‘Filter’ to the target. Exception setting “Filter”: “Invalid filter...

View Article

Reply To: Downloading Tables from webpages

I’d say you want to sort that out BEFORE you get rid of the HTML. The HTML tags are how you tell the difference between columns.

View Article


Image may be NSFW.
Clik here to view.

Reply To: Sort a list but have 2 specific objects at the top

I’d be happy to have ya putting stuff in variables instead of in files as an interim holding area . So, a couple of things: Arrays don’t “have” commas or carriage returns. An array is (basically) a...

View Article


Reply To: Excel remains running

Marleen, This is a code segment that shows what I use for the Excel not closing problem. It happens I am just automating saving the .XLSX file as .CSV. What you would want is the first line getting...

View Article

Reply To: Excel remains running

Marleen, I have included a code segment below that shows how I handle the problem with Excel not closing. What you would be interested in is the first line that get a list of existing Excel processes...

View Article

Reply To: Replace text in TSM option file

No problem, thanks for all the help. Ive actually updated my script as it wouldnt overwrite the dsm.opt file, I also added $server so I could see which server it is on if it fails & added a...

View Article

Reply To: Powershell with logmein rescue

Don has a good free ebook on remoting. Find it here http://powershell.org/wp/newsletter/. That would be where I would start. If you want to run PowerShell on the remote machine through the logmein...

View Article


Write-Progress status not displaying

I have code that creates a Process, starts it, and then, I want to view the progress. The process executes DTExec.exe, which runs SQL Server SSIS packages. In my case, a log table gets updated as each...

View Article

Any SCVMM 2012 folks here?

Working on a build script for new VM’s. I can get it to build a VM based on a template and customize name and hardware specs easily enough, however trying to customize the network settings: DNS,...

View Article


Reply To: Sort a list but have 2 specific objects at the top

Thanks Don, Looking forward to the podcast tonight for sure. OK so here we go I think I learned something here. . . $topmost = ‘peach’,'grapefruit’ $main = ‘apple’,'orange’,'peach’,'pear’,'grapefruit’...

View Article

Comparing values of two cells from different xls files

Dear experts! I have 2 seperate .xls files containing information about disk space and corresponding costs. Now I need to write a script which automatically compares the columns containing the disk...

View Article


Reply To: Downloading Tables from webpages

Ahhh right how would I go about that? I cant seem to fathom it out. Many Thanks James

View Article

Reply To: Files and Folders

Hey Matt, Thanks very much for the help.It worked. Thanks

View Article

Reply To: Downloading Tables from webpages

Well, that’s the thing. It’s hard. You have to write a regex to capture the “ whatever ” and then a subexpression to capture just the contents of the cell. Again, I’m not especially good at that. Me,...

View Article
Browsing all 13067 articles
Browse latest View live