Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Powerview : Add Get-NetComputerStartTime & Get-NetComputerVersion #249

Closed
wants to merge 4 commits into from
Closed

Conversation

RemiEscourrou
Copy link

Hi,

This PR is for a Get-NetComputerStartTime function which uses Netapi32 to retrieve the boot time from the remote server.

This function just need domain authenticated user access.

Example

PS C:\> Get-NetComputerStartTime -ComputerName sqlserver

HostName      StartTime
--------      ---------
sqlserver     18/07/2017 06:03:27

This PR is also for a Get-NetComputerVersion function which uses Netapi32 to retrieve information
concerning the operating system from the remote server because we can't always trust information
in Active Directory.

This function could be use with Anonymous access (if the EveryoneIncludesAnonymous policy
setting allows anonymous access).

Example

PS C:\> Get-NetComputerVersion -ComputerName sqlserver

wki100_platform_id  : 500
wki100_computername : sqlserver
wki100_langroup     : TESTLAB
wki100_ver_major    : 10
wki100_ver_minor    : 0

@RemiEscourrou RemiEscourrou changed the title Dev Powerview : Add Get-NetComputerStartTime & Get-NetComputerVersion Jul 21, 2017
@HarmJ0y
Copy link
Contributor

HarmJ0y commented Sep 17, 2017

Sorry it took so long to get to this- there are some conflicts with the branch that I'll need to resolve first, but this functionality looks awesome!

@RemiEscourrou
Copy link
Author

No problem, I will resubmit the request without conflicts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants