tag:blogger.com,1999:blog-79922754913936532332024-03-18T21:53:15.160-07:00E-TechBig Ehttp://www.blogger.com/profile/16232510677503791268noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-7992275491393653233.post-27297607710162725822020-10-24T11:50:00.000-07:002020-10-24T11:50:36.203-07:00PowerShell - One Ring to Rule Them All<p> </p><p><br /></p><p>I've been working with PowerShell for a number of years now and suggest that anyone in the IT world should take a look into it. But even novice PC users can benefit. PowerShell works with .NET Core which is platform that interacts with the OS and hardware of most programmed devices now. </p><p>If you want to give it a try on your laptop or PC right now, just start typing "powershell" into your search bar right now and click on the blue icon that comes up. </p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_iWkT-50JzMIytU_HzqIZGgKGMF7ndZUG74aYUxl8Pl25i6H8-f6Fuz72SML339r3E20Hi47YwiVIuldFfvJvi5_Lxl5cK3p4BGriPMsoQsayUUwAcI2zNrt4EaIOrf4ohcrG_uoC0o3s/s424/2020_10_24_12_43_53_Facebook_Brave.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="84" data-original-width="424" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_iWkT-50JzMIytU_HzqIZGgKGMF7ndZUG74aYUxl8Pl25i6H8-f6Fuz72SML339r3E20Hi47YwiVIuldFfvJvi5_Lxl5cK3p4BGriPMsoQsayUUwAcI2zNrt4EaIOrf4ohcrG_uoC0o3s/s320/2020_10_24_12_43_53_Facebook_Brave.jpg" width="320" /></a></div><p>Type in: if(!(Test-Path -Path C:\.myinfo )) {New-Item -ItemType directory -Path C:\.myinfo} </p><p>Hit Enter</p><p>This will create a new folder on your C drive. </p><p>Next type: Get-ComputerInfo | Out-File C:\.myinfo\ComputerInfo.txt | notepad C:\.myinfo\ComputerInfo.txt </p><p>Hit Enter</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTHrkH9O6fOYnskPB_k8RIYQe86IdmGh0358cS_iHrVaeEKVzxLAg7RayLBbUbJg_KiEuvembUCSC7eHEMtbIOWBc5PlyTWXwDFkTfW4nvlkW6EauJdxHKVr7VBsQIEfvnxrNVpNOLEwX7/s861/2020_10_24_12_48_18_ComputerInfo_Notepad.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="617" data-original-width="861" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTHrkH9O6fOYnskPB_k8RIYQe86IdmGh0358cS_iHrVaeEKVzxLAg7RayLBbUbJg_KiEuvembUCSC7eHEMtbIOWBc5PlyTWXwDFkTfW4nvlkW6EauJdxHKVr7VBsQIEfvnxrNVpNOLEwX7/s320/2020_10_24_12_48_18_ComputerInfo_Notepad.jpg" width="320" /></a></div><p>This will "Get" the information from your computer's system info and create a shareable/printable text document. It will then open it up in NotePad for you to view. You can share it with tech support or use it when buying parts, etc. Once you close the NotePad, you can go back and get it, should you ever need that info later. </p><p>Find it in your C:\.myinfo folder that you created. </p><p>You can see that the language is understandable to anyone. "Get" the info, send it "Out" to a file. Open the NotePad with your new text document displayed. </p><p>Cutting and pasting can be used, but the language and auto-complete suggestions make it easy to use on the fly. </p><p>I'll be adding this quick tip along with others in one of my blog pages, https://big-e-tech.blogspot.com/ which will have entry level to engineer level examples to get people using this amazing tool.</p>Big Ehttp://www.blogger.com/profile/16232510677503791268noreply@blogger.com0tag:blogger.com,1999:blog-7992275491393653233.post-33296683041479932002017-07-26T12:16:00.006-07:002020-10-24T11:35:12.181-07:00Inventory Using AD Module for Powershell <br />
<br />
I wanted to go away from so many command shells for fishing information out of AD.<br />
<br />
Quest has done well, but I'm in AD PowerShell all the time.<br />
<br />
<br />
After many modifications, this the refined working method. <br />
<br />
<br />
<span style="background-color: cyan; color: #800180;">Get-ADComputer -Filter * -Property * | Select-Object -Property Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion,LastLogonDate | Sort-Object -Property Name | Export-CSV C:\Apps\Inventory20170726.csv</span><br />
<br />
<br />
<br />
<br />
The properties can be added to, but the "<span style="background-color: yellow;"><span style="color: #800180;">Sort-Object</span> </span>-Property Name" with a chosen value before the "| Export-CSV C:\Apps\Inventory20170726.csv" seemed to keep the report from becoming a single column of representative numbers. <br />
<br />
<br />
<div>
<br /></div>
<br />Big Ehttp://www.blogger.com/profile/16232510677503791268noreply@blogger.com0tag:blogger.com,1999:blog-7992275491393653233.post-75531406135938553292016-02-11T14:13:00.001-08:002016-02-11T14:16:37.550-08:00Adding Trusted Sites through Group Policy <div class="MsoNormal">
The necessity for pushing out Trusted Sites arose out of our
moving to Office365 for the Office Suite including Outlook and Exchange. <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Microsoft had a long list of sites for that zone. <o:p></o:p></div>
<div class="MsoNormal">
<span style="font-size: large;"><br /></span></div>
<span style="font-family: "calibri" , sans-serif; font-size: large; line-height: 107%;">Step 1 was manually typing them into a clean
PC. </span><br />
<span style="font-family: "calibri" , sans-serif; font-size: 11.0pt; line-height: 107%;"><br /></span>
<span style="font-family: "calibri" , sans-serif; font-size: 11.0pt; line-height: 107%;"><br /></span>
<span style="font-family: "calibri" , sans-serif; font-size: 11.0pt; line-height: 107%;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT-lKfpkFQl7R5cgbhjMAMnOQ3a4Hn5py8Vwt_NM4A6l7SDWfjz0OWPXYkm-5cXPB5uni_Gk-W4lfMUyW2Vr7eTei0Z-evtq4Tba6Lxj169WQj0bHH_mY_2I76fExc3u6vK_NjEuiy6_yb/s1600/step1.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT-lKfpkFQl7R5cgbhjMAMnOQ3a4Hn5py8Vwt_NM4A6l7SDWfjz0OWPXYkm-5cXPB5uni_Gk-W4lfMUyW2Vr7eTei0Z-evtq4Tba6Lxj169WQj0bHH_mY_2I76fExc3u6vK_NjEuiy6_yb/s1600/step1.jpg" /></a></span><br />
<br />
<br />
<div class="MsoNormal">
<span style="font-size: large;">Step 2 was going into the Regedit.exe and finding the key
for Trust Sites. <o:p></o:p></span><br />
<span style="font-size: large;"><br /></span>
<span style="font-size: large;"><br /></span></div>
<div class="MsoNormal">
It is found by going to: </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\ZoneMap\Domains<o:p></o:p></div>
<div class="MsoNormal">
And exporting them to a Shared folder on the Network<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiYLTbpyfRjJPpUV61j3o6O8Eyw5sfCdv75gXJW_OxeSJ32gg3xNkQtNYJRUpS8kbCqvDvgehsfJdZfM0pUlfGx95phpuhhCX5ZYeTcc7t664XqsjcrI11ovyXei4GWpl96Wg6c0Mzl1cF/s1600/step2.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiYLTbpyfRjJPpUV61j3o6O8Eyw5sfCdv75gXJW_OxeSJ32gg3xNkQtNYJRUpS8kbCqvDvgehsfJdZfM0pUlfGx95phpuhhCX5ZYeTcc7t664XqsjcrI11ovyXei4GWpl96Wg6c0Mzl1cF/s1600/step2.jpg" /></a></div>
<div class="MsoNormal">
<!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_3" o:spid="_x0000_i1027" type="#_x0000_t75"
style='width:353.25pt;height:217.5pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\ErikC\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-size: large;">Step 3 is to create a Group Policy Object with a Logon
Script</span><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1JKTsv5aPg554RarjJuzlHdiqFpulMwwlc1B-8RcBVTERsFSBtGpRvN7woDODP9U_IDw4f_uY6KRoWtVfY6mXQnen6Wzi7eGhclCq1lDXVj9dBbd6ZEjjw_V2Pg6Ghrcv06SVd01EWRc-/s1600/step3.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1JKTsv5aPg554RarjJuzlHdiqFpulMwwlc1B-8RcBVTERsFSBtGpRvN7woDODP9U_IDw4f_uY6KRoWtVfY6mXQnen6Wzi7eGhclCq1lDXVj9dBbd6ZEjjw_V2Pg6Ghrcv06SVd01EWRc-/s1600/step3.jpg" /></a></div>
<div class="MsoNormal">
<!--[if gte vml 1]><v:shape
id="Picture_x0020_1" o:spid="_x0000_i1026" type="#_x0000_t75" style='width:350.25pt;
height:249.75pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\ErikC\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br />
The script I made was the following: <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
IF NOT EXIST "C:\Apps" MD C:\Apps<o:p></o:p></div>
<div class="MsoNormal">
COPY /B /S /Y
"\\ServerName\GPDocuments\domains.reg"
"C:\Apps\domains.reg"<o:p></o:p></div>
<div class="MsoNormal">
REG IMPORT "C:\Apps\domains.reg"<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
I saved it as a .cmd and then added it to the default
location that come up when you choose “Logon,” “Add a Script,” and then “Browse.” You can just drag you “Add_trusted_sites.cmd”
into the location that the browse opened. <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<!--[if gte vml 1]><v:shape
id="Picture_x0020_4" o:spid="_x0000_i1025" type="#_x0000_t75" style='width:432.75pt;
height:168pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\ErikC\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></div>
<div class="MsoNormal">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5g8mOQtx0bvhwXjwYuytStJ39doJoLxJhTAVhqVjSILfpYw3sbVjRCod5HGydyjRzTvMaCrV3Y_2z8XMKa0UltqMdu1mdIdJc6wkV2PqacWGLeLjKmRAr6WBSAoeiep_PhXMmNtz6MOBA/s1600/step4.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5g8mOQtx0bvhwXjwYuytStJ39doJoLxJhTAVhqVjSILfpYw3sbVjRCod5HGydyjRzTvMaCrV3Y_2z8XMKa0UltqMdu1mdIdJc6wkV2PqacWGLeLjKmRAr6WBSAoeiep_PhXMmNtz6MOBA/s1600/step4.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<br />
<div class="MsoNormal">
This copies the key from the network shared folder to a
folder on the PC and then imports it to the registry without any pop ups.<o:p></o:p></div>
Big Ehttp://www.blogger.com/profile/16232510677503791268noreply@blogger.com0tag:blogger.com,1999:blog-7992275491393653233.post-87494491221803117872014-10-25T08:35:00.004-07:002020-10-24T09:55:11.841-07:00Exchange 2010 on 365: Manager Access to Mailbox without attaching to Outlook<div class="MsoNormal">
Add-MailboxPermission –Identity shared@yourdomain.com -AccessRights FullAccess -User user@yourdomain.com -InheritanceType all
-AutoMapping $false<o:p></o:p></div>
Big Ehttp://www.blogger.com/profile/16232510677503791268noreply@blogger.com0tag:blogger.com,1999:blog-7992275491393653233.post-87055942984469952832014-10-25T08:34:00.002-07:002014-10-25T08:34:26.095-07:00Exchange 2010 on 365: Add Calendar Read ONLY Permissions<div class="MsoNormal">
Add-MailboxFolderPermission –Identity
shared@yourcompany.com:\Calendar -AccessRights
ReadItems -User user@yourcompany.com<o:p></o:p></div>
Big Ehttp://www.blogger.com/profile/16232510677503791268noreply@blogger.com0tag:blogger.com,1999:blog-7992275491393653233.post-26451514009637402872014-10-23T11:02:00.005-07:002014-10-23T11:02:47.578-07:00Exchange 2010 on 365: Converting a Remote Mailbox to Shared<div class="MsoNormal">
Open Active Directory Module for Windows PowerShell<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: lime;">Run the following commands to connect with Exchange Server</span><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
$LiveCred = Get-Credential<br /><br />$Session = New-PSSession -ConfigurationName
Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/
-Credential $LiveCred -Authentication Basic -AllowRedirection<br /> <br />Import-PSSession $Session<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: lime;">Then run the following, substituting the user ID with that of your Remote Mailbox</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Calibri",sans-serif; font-size: 11.0pt; line-height: 107%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;">Set-Mailbox
-Identity "USER@yourcompany.com" -Type shared</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<br />
<div class="MsoNormal">
<o:p></o:p></div>
Big Ehttp://www.blogger.com/profile/16232510677503791268noreply@blogger.com0