Script doesn't run under Server 2008 #12

Open
opened 2021-05-07 14:18:51 -04:00 by efrick · 1 comment
Owner

This is probably due to the same limitations as running on windows 7.

Add Server 2008 to the detection and have it run the windows 7 set of commands.

This is probably due to the same limitations as running on windows 7. Add Server 2008 to the detection and have it run the windows 7 set of commands.
efrick added the
bug
label 2021-05-07 14:18:51 -04:00
Author
Owner

Adding and Or statement will fix this.
I'll push an update later to change the line to:

if(( $os_name[2] -like "Microsoft Windows 7*" ) -or ( $os_name[2] -like "Microsoft Windows Server 2008*" )){
Adding and `Or` statement will fix this. I'll push an update later to change the line to: ```powershell if(( $os_name[2] -like "Microsoft Windows 7*" ) -or ( $os_name[2] -like "Microsoft Windows Server 2008*" )){ ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: efrick/Sysinfo#12
No description provided.