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 ArticleReply 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 ArticleExchange – 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleReply 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 ArticleWrite-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 ArticleAny 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 ArticleReply 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 ArticleComparing 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 ArticleReply To: Downloading Tables from webpages
Ahhh right how would I go about that? I cant seem to fathom it out. Many Thanks James
View ArticleReply 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