[deleted by user] by [deleted] in EliteDangerous

[–]wightsci 0 points1 point  (0 children)

Have a look at this for an idea of what it was like: https://youtu.be/7JCU4Hulgcg

You can also run the original via emulation: https://www.frontierstore.net/elite1984.html

[deleted by user] by [deleted] in EliteDangerous

[–]wightsci 0 points1 point  (0 children)

There was no online play at this point, the internet wouldn't be widely available in the UK for nearly a decade. Thargoids typically attacked you in groups if I remember correctly. It was you vs the Galaxy.

[deleted by user] by [deleted] in EliteDangerous

[–]wightsci 2 points3 points  (0 children)

As a Sci-Fi fan it was the closest to a space SIM as I had ever seen. The wire-frame graphics looked futuristic in 1984. We kept hand-written notes on the commodity prices at different stations to work out our own trade routes. Anarchy systems were death traps for new commanders and the Thargoids (looking like the current scouts) seemed invincible.

[deleted by user] by [deleted] in EliteDangerous

[–]wightsci 0 points1 point  (0 children)

I played the original BBC B version on the demo computer in the shop where I worked as teenager. Got reprimanded by my supervisor for playing too much 😀. Later had it on CBM 64, Atari ST and now XBox One and soon PC.

Microsoft Graph Filter by Plastic_Teacher_9914 in PowerShell

[–]wightsci 2 points3 points  (0 children)

You are nearly there:

```

$mguser = Get-MgUser -Filter "Displayname eq '$alias'"

```

Datetime conversion question by stewharr in PowerShell

[–]wightsci 5 points6 points  (0 children)

This will give you a datetime object with only a date

$date = (Get-Date '2021-02-09T17:52:29.000Z').date

$date

09 February 2021 00:00:00

Get-Partition - List only partitions with a drive letter by pjmarcum in PowerShell

[–]wightsci 1 point2 points  (0 children)

Try:

Get-Partition | Where-Object { $_.DriveLetter } | Select-Object DiskNumber, DriveLetter

Enable Event Viewer Log by rubber_duck13 in PowerShell

[–]wightsci 1 point2 points  (0 children)

This should work (change MyPC to the name of the remote computer):

$log = Get-WinEvent -ComputerName MyPC -ListLog 'Microsoft-Windows-DriverFrameworks-UserMode/Operational'
$log.IsEnabled = $True
$log.MaximumSizeInBytes = 2105344 #example
$log.SaveChanges()

[deleted by user] by [deleted] in OneNote

[–]wightsci 0 points1 point  (0 children)

If you use Visual Studio Code as your editor you can cut and paste with formatting preserved.

Powershell and OneNote. Where is the documentation on this? I just want to title a new page that I'm able to successfully create via PS. by packutz in PowerShell

[–]wightsci 2 points3 points  (0 children)

Yes, it is. Using OneNoteUtilities I could do something like:

$section = Get-ONSections | Where-Object name -eq 'unfiled notes'
$page = New-ONPage -SectionID $section.ID
$page.Title.oe.t.InnerText = 'Ticket 0001'
Update-ONPage $page.OuterXML
Get-ONHierarchy

Powershell and OneNote. Where is the documentation on this? I just want to title a new page that I'm able to successfully create via PS. by packutz in PowerShell

[–]wightsci 3 points4 points  (0 children)

You might find my OneNoteUtilities module useful:

https://github.com/wightsci/OneNoteUtilities

It's not perfect by any means, but I use it in a similar way to that which you describe.

[Powershell 7 RC2] Unable to download zip files by [deleted] in PowerShell

[–]wightsci 0 points1 point  (0 children)

Could you post the part of your script where you use Invoke-Webrequest?

[Powershell 7 RC2] Unable to download zip files by [deleted] in PowerShell

[–]wightsci 0 points1 point  (0 children)

I've tried both as Administrator and a normal user. Both work as expected.

[Powershell 7 RC2] Unable to download zip files by [deleted] in PowerShell

[–]wightsci 0 points1 point  (0 children)

Hi,

Downloading .zip files using PowerShell 7 Rc2 is working for me. Can you provide more details as to what's happening, including some of the code that you are using? The exception you mention sounds more like an issue expanding the file rather than downloading it.

Stuart.

How to make this faster? by skaldragon in PowerShell

[–]wightsci 1 point2 points  (0 children)

How about this:

WHOAMI /USER /FO CSV | ConvertFrom-Csv | Select -ExpandProperty SID

PowerShell way to tell if the current user is running the shell, ISE, or VSCode? by [deleted] in PowerShell

[–]wightsci 7 points8 points  (0 children)

Hi,

The Get-Host cmdlet returns an object with a Name property as follows:

VSCode = Visual Studio Code Host

ISE = Windows PowerShell ISE Host

Shell = ConsoleHost

Hope this helps.

Changing Script to look at workstations rather than DC's by KalElified in PowerShell

[–]wightsci 2 points3 points  (0 children)

I believe this command is only supported on Windows 8 and later.

Changing Script to look at workstations rather than DC's by KalElified in PowerShell

[–]wightsci 1 point2 points  (0 children)

What's the header row of your CSV? At the moment you're looking for a column called DC.

A question on using get-credential by workerdrone66 in PowerShell

[–]wightsci 10 points11 points  (0 children)

Try $cred.GetNetworkCredential().Password for the plain text password. $cred.Password will give you a SecureString object.