| Topic |
 |
RE: Enable-PsRemoting on windows 7 workgroup Of course I did Marco - I'm not an idiot!! Turns out that blub put me onto the fix :-) by Bobdee in General PowerShell on 20 Jan 2012 01:49 PM
|
 |
RE: Test Webpage Back knowing more...Great post Jedi :-) by Bobdee in General PowerShell on 06 Jan 2012 12:23 PM
|
 |
RE: Exchange CMDLETS Hi Marco - sorry for only replying now.We are using an earlier exchange domain, so completely non-powershell. I'm only posting in case any other folks are having the same troubles.Basically, only 2010 (I think) at the moment is PS compliant and try ... by Bobdee in Exchange Server on 06 Jan 2012 12:03 PM
|
 |
RE: Creating Log File Cameronve - I've revisited this puppy since I've became a bit more knowledgeable with coding, and yes, your original response was spot on.Thank you :-) by Bobdee in General PowerShell on 06 Jan 2012 11:11 AM
|
 |
Enable-PsRemoting on windows 7 workgroup Hi,I'm trying to enable psremoting on my windows 7 workgroup at home, but constantly get authentication errors and I can't seem to find why. Can anyone give me the necessary steps to enable it please? I've modified the remote security settings to ... by Bobdee in General PowerShell on 06 Jan 2012 10:24 AM
|
 |
RE: Remove IE browsing cache... Hi Marco. I understand what you are saying, but what I am finding is that PS (or normal command line dir) cannot see the cached TIFs. I know that there are definitely files in there. If I remove the pipe and just GCI the directory, nothing is ret ... by Bobdee in General PowerShell on 25 Oct 2011 01:18 AM
|
 |
Remove IE browsing cache... Hi,Can anyone point me in the right direction of deleting IE browsing history using PS?I'm finding that I can browse to the directory of the cache, but PS can't see anything there to list, or delete. Here's the line I have gci "C:\Users\me\AppData\ ... by Bobdee in General PowerShell on 24 Oct 2011 08:48 AM
|
 |
RE: Overloading with Get-QADuser Thanks Marco - as always. This worked perfectly. Rob. by Bobdee in General PowerShell on 21 Oct 2011 01:08 AM
|
 |
Overloading with Get-QADuser Hi - I'm attempting to write a function with 2 overloads that will allow me to perform a get-qaduser on a specific user and return a specific attribute. Now, I can use overloads normally IE - on a sql query, or just to write the overloa ... by Bobdee in General PowerShell on 20 Oct 2011 09:09 AM
|
 |
RE: Working with UNCs All very cool thanks guys. Although Marcos post worked originally, so I used it. Here's what I finished with. It's a script to remove anything that is not needed in particular paths complied from a SQL query, where there should only be 1 file per ... by Bobdee in General PowerShell on 12 Oct 2011 05:25 AM
|
 |
RE: Working with UNCs Brilliant! Pretty is not a concern :-) Thanks Marco by Bobdee in General PowerShell on 10 Oct 2011 07:03 AM
|
 |
RE: Working with UNCs I have another query with this guys. If say, I wanted to break a unc down folder by folder, what would be the best method of doing this? I mean breaking it down like this : \\server\c$\folder1\folder2\folder3\folder4\ \\server\c$\folder1\fol ... by Bobdee in General PowerShell on 10 Oct 2011 06:13 AM
|
 |
RE: Working with UNCs I dunno, it's the same thing in work - 2 different environments, using PowerGui and the shell - same result. Since it's 9.26pm, I'll leave it there. Thanks for the help tho guys. by Bobdee in General PowerShell on 07 Oct 2011 01:25 PM
|
 |
RE: Working with UNCs Marco - you were right originally. I'm not at work now, so unless I log on from home (not a chance) to see why I found a different result earlier, I can't say why I didn't agree originally. Originally I found that your PS only gave me \folder\ ... by Bobdee in General PowerShell on 07 Oct 2011 01:02 PM
|
 |
RE: Working with UNCs Awesome EB - thanks very much. It confused me tbh, but I understand what you've posted. Very appreciated. Thanks too Marco - apologies for not posting a desired result. (I think I have your book btw!) Thanks again fellas, Bob. by Bobdee in General PowerShell on 07 Oct 2011 10:56 AM
|
 |
RE: Working with UNCs Sure - apologies. So - $string = '\c$\folder\su-folder\file.pdf' And I'd like to reduce that to - '\c$\folder\sub-folder\' There may be more sub-folders, so I'd just like to remove the filename, Thanks by Bobdee in General PowerShell on 07 Oct 2011 10:35 AM
|
 |
RE: Working with UNCs That's almost perfect Marco - thanks. It leaves me with the middle part of the UNC however. Thanks. by Bobdee in General PowerShell on 07 Oct 2011 09:23 AM
|
 |
RE: Working with UNCs Here is what I have already - I forgot to put it in the original post $string = "robbie\robbie\robbie.pdf" $a = @($string.Split('\') | Where-Object {$_ -like '*.*'}) ($string -replace $a, '')The only problem I have with this, is that some directo ... by Bobdee in General PowerShell on 07 Oct 2011 09:21 AM
|
 |
Working with UNCs Hi,I know it's basic PS, but I'm having some difficulty in removing some of a string.Basically, I will have a UNC path in a string which will include a filename - IE \c$\folder\thisfile.pdf - and I want to remove anything after the last '\'.I though ... by Bobdee in General PowerShell on 07 Oct 2011 09:10 AM
|
 |
RE: command from variable EB - I wasn't trying to use the query that I put up, it was more an example. Sorry if it was confusing, but thanks for posting - appreciate it.Bob by Bobdee in General PowerShell on 06 Sep 2011 12:54 PM
|
 |
RE: command from variable Perfect uSlacker - thanks for that.I had used it before, but completely forgot - so I appreciate you're help man.Bob by Bobdee in General PowerShell on 06 Sep 2011 12:46 PM
|
 |
command from variable Hi,Is there anyway to build a command in a variable, then run it.I'm trying to do this by building a string from a sql query, then run it. I thought I had done this before, but the more I think of it I'm not sure I have.I've tried creating an alias ... by Bobdee in General PowerShell on 06 Sep 2011 06:04 AM
|
 |
RE: Split String with no seperator Awesome... Thank you very much :-) by Bobdee in General PowerShell on 03 Aug 2011 06:44 AM
|
 |
RE: Scheduling Powershell Scripts I have an archiving script and I use scheduled tasks to run it weekly. Here's the command I use to run it. start program %windir%\system32\WindowsPowerShell\v1.0\powershell.exe argument -command "& 'E:\PS-Scripts\ArchiveMe\ArchiveMe v1.7.ps1'" test ... by Bobdee in General PowerShell on 03 Aug 2011 06:42 AM
|
 |
Split String with no seperator Can someone please put me out of my misery? I've done this before, but cannot remember for the life of me how to do it.If I have a string - say $string = 'bobdee' - without a seperator, what is the most effective way of splitting it up into seperat ... by Bobdee in General PowerShell on 03 Aug 2011 06:20 AM
|
 |
RE: Random Password gen That's fantastic thanks for the responses guys. I'll mill over both options.I adapted the Jeff Hicks script to suit my needs. I do like the word import however - good idea!Param([string]$source="AbCdEfGhIjKlMnOpQrStUvWxYz",[int]$so ... by Bobdee in Active Directory on 13 May 2011 06:05 AM
|
 |
RE: Remove multiple AD Users + Mailbox Remember to test any removal script with one user first to make sure it does what you require - you DO NOT want to plug it in then find out it blows your directory away. by Bobdee in Active Directory on 13 May 2011 02:22 AM
|
 |
RE: Remove multiple AD Users + Mailbox import-csv c:\myFile | select samAccountName | foreach { remove-QADuser $_.samAccountName } Robbie. by Bobdee in Active Directory on 13 May 2011 02:15 AM
|
 |
RE: Export Group Members to CSV Your quickest method might just be to create a seperate csv for each group, then merge them once completed. I'm not one for manual work, but a quick cut and paste will sort your query inside a minute. Rob by Bobdee in Active Directory on 13 May 2011 02:12 AM
|
 |
Random Password gen Hi,I create a lot of users, and have been playing with random passwords thru powershell and at the moment I can't seem to write something that will use only alpabetical characters. Sure, the requirement for a strong password is an obvious security ... by Bobdee in Active Directory on 13 May 2011 02:01 AM
|