Skip to content

Instantly share code, notes, and snippets.

View FriedrichWeinmann's full-sized avatar

Friedrich Weinmann FriedrichWeinmann

View GitHub Profile
@FriedrichWeinmann
FriedrichWeinmann / Get-FISSystemInformation.ps1
Created January 28, 2018 12:08
Iron Scripter 2018 - Get-FISSystemInformation
function Get-FISSystemInformation
{
<#
.SYNOPSIS
Gathers information on the target's system.
.DESCRIPTION
This function uses CIM to gather information about the target computer(s)'s system.
.PARAMETER ComputerName
@FriedrichWeinmann
FriedrichWeinmann / DiskInfo.cs
Created January 28, 2018 12:05
Iron Scripter 2018 Prequel 2 classes
using System;
namespace Fred.IronScripter2018
{
/// <summary>
/// Class containing information on a disk
/// </summary>
[Serializable]
public class DiskInfo
{
@FriedrichWeinmann
FriedrichWeinmann / FredsIronScripter2018.psproj.xml
Created January 28, 2018 12:01
C# Project configuration - do not append target framework to path
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\..\..\FredsIronScripter2018\bin</OutputPath>
<DocumentationFile>..\..\..\FredsIronScripter2018\bin\FredsIronScripter2018.xml</DocumentationFile>