Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
7
Newest
 Commentator
Impact
~16k people reached

  • 0 posts edited
  • 0 helpful flags
  • 17 votes cast
May
6
comment Powershell's equivalent to Bash's process substitution
In PowerShell $() is the subexpression operator, you could use it like this: Write-Output "The BITS service is $(Get-Service bits | select -ExpandProperty Stauts)" to get the status of the BITS service without loading it into a variable first. Looking at Process Substitution, this isn't exactly the same, but it might still solve the problem you're facing
Apr
27
comment ADDS: Mandatory Profiles through powershell
Not sure what you've looked at so far, but you would probably need to create the first profile by hand, then you should be able to use that, and Group Policy to handle the others. If you put the default profile on a Server, you should be able to assign it to the ADUser Object with PowerShell.
Apr
27
comment ADDS: Mandatory Profiles through powershell
I think this question is dealing with actual User Profiles, not the PowerShell $profile.
Apr
24
answered Getting All Users From Active Directory Groups Using Powershell
Apr
24
comment Check deletion rights on AD object via powershell?
This will give you all the ACEs for a given object. Just because it isn't easy to implement doesn't mean it doesn't work. What you say is correct, but I didn't post this for it to be the total solution, just a method to use in a script. You would have to get the $admin.MemberOf attribute, and compare it to the ACEs, and then make sure it had a property that included the rights to delete. You'd probably also need a recursive function to get any nested ADGroupMembership for the user.
Apr
23
comment PowerShell Script Not Running on Scheduled Task
so, the script just sits in the root of the C:\ drive?
Apr
23
comment PowerShell Script Not Running on Scheduled Task
if you just try to run the script as the user that your scheduled task runs as, does it work? For my Scheduled Tasks, I run as SYSTEM (since it's just doing local filesystem stuff) Start a program: powershell then Arguments: -ExecutionPolicy Bypass -NonInteractive -WindowStyle Hidden C:\Path\To\Script.ps1
Apr
23
answered Active Directory: Track old password changes and expiry dates?
Apr
2
comment Install Exchange 2013 with DSC
If you're going to be doing this with DSC, check out this blog series about the xExchange resource.
Mar
20
revised Check deletion rights on AD object via powershell?
added 357 characters in body
Mar
20
answered Check deletion rights on AD object via powershell?
Mar
17
comment How to time-bomb a GPO?
Agreed, any settings that right to the registry don't just revert to default when unlinked, or even set to "Not Configured"
Mar
17
comment How to download files from my MSDN subscription using Powershell?
This may not be exactly what you need, but here is a post on web scraping with PowerShell link
Mar
12
comment Can't Remote Desktop on LAN, Firewall Rules in Place, Yet Packets Dropped
Since it hasn't been stated, have you verified that Remote Desktop is enabled while connected to the 10.1.10.0 network? Not sure why it would matter, but just to be sure. Also, is it allowing any connection, or does it require Network Level Authentication?
Mar
11
comment Transfer files via Powershell Remoting (like scp in linux)
Since it's over the internet, but not through a VPN, how exactly are you connecting with PSRemoting? Are you using PowerShell WebAccess? You will probably need to get the files to an area that is reachable from the internet, from there you might be able to use Invoke-WebRequest -Method GET to download it.
Mar
11
comment Transfer files via Powershell Remoting (like scp in linux)
Is it over a VPN?
Mar
10
comment Powershell IIS plugin - cmdlets not working
What do you get for the output of "Get-Command Get-Web*"
Oct
17
awarded  Commentator
May
22
comment How to export a detailed list of Active Directory users' “Member of” tab?
True, I have had to keep that in mind when I share scripts in my group, as I'm the only one with PowerShell experience, and as such the only one who ever upgraded past 2.0
May
22
comment How to export a detailed list of Active Directory users' “Member of” tab?
Just saw that Josh R beat me to it. His is simpler as well.