Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-GptTmpl non domain joined User/PC #57

Closed
Meatballs1 opened this issue Oct 12, 2015 · 2 comments
Closed

Get-GptTmpl non domain joined User/PC #57

Meatballs1 opened this issue Oct 12, 2015 · 2 comments

Comments

@Meatballs1
Copy link
Contributor

Using runas /netonly technique, for some reason Test-Path returns false unless you have the drive mapped?

e.g. net use * \target.com

Then Test-Path will start returning true...

@HarmJ0y
Copy link
Contributor

HarmJ0y commented Oct 12, 2015

Hrmmm. What do you think about a -MapDrives argument to anything that uses remote Test-Path's, something like "New-PSDrive –Name $RandName –PSProvider FileSystem –Root “\SERVER\share” . Could also supply alternate credentials.

@HarmJ0y
Copy link
Contributor

HarmJ0y commented Oct 13, 2015

The version_2.0 branch just got a push to hopefully support this- Get-GptTmpl, Get-GroupsXML, Get-NetGPOGroup, Find-GPOComputerAdmin, Find-GPOLocation and Get-DomainPolicy nowhave a "-UsePSDrive" switch that should automate the creation of a randomized session-only PSDrive for the mounting of locations to search for policy files. Let me know if this does/doesn't work, and I'll close the issue when it's a confirmed fix.

Also, Find-InterestingFile and Invoke-FileFinder received the flag as well, along with a -Credential option to specify alternate credentials for file searching. Again, minimally tested, so let me know what breaks :)

@HarmJ0y HarmJ0y closed this as completed Oct 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants