Home

Blog and Wiki Posts

IT News (sign in to comment or post)

Site Activity

  • Profile picture of Paolo Maffezzoli
    Share
  • Profile picture of Paolo Maffezzoli
    Share
  • Hey Michael thanks for the useful tutorial, it's nice to always know more ways into Windows when you are locked out.   A lot of cases I come by are from peers/owners/managers who've acquired a business or had key IT staff leave and are without access to critical business infrastructure.

    Share
  • Kyle,

    Initially reading I also was wondering like mikehak why you would download OCT.  Of course reading your reply, the point is clear.  Maybe add the reasoning behind it in your article?

    I've always referenced the .msp when calling it instead of dumping it in the updates folder.  Exact same reasoning you provided for situations where you would be using multiple .msp files.

    Litty,

    Very nice descriptive workflow! I've copied your post into my notes in case I ever need it.  Thanks!

    Share
  • Profile picture of Bryce McDonald

    Bryce McDonald became a registered member 1 day, 8 hours ago

    Share
  • Hi, I am new to powershell and interested in machine uptime information for data analysis. May I check if the above powershell script is capable of checking total uptime over a certain period even after reboots or shutdowns/startups (ie: for 2 months or 1 year)?

    Share
  • Thank you for this post, but i have this error, any one can help me , i have Exchange 2013

    Exception lors de l'appel de «Bind» avec «2» argument(s): «L'objet spécifié est introuvable dans la banque d'informations.»
    Au caractère C:UsersrfcramiDesktopScript To Save Attachement.ps1:23 : 1
    + $InboxFolder = ::Bind($service,$fold ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) , MethodInvocationException
    + FullyQualifiedErrorId : ServiceResponseException

    Impossible d’appeler une méthode dans une expression Null.
    Au caractère C:UsersrfcramiDesktopScript To Save Attachement.ps1:32 : 1
    + $frFolderResult = $InboxFolder.FindItems($sfCollection,$view)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) , RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

    Share
  • Hi Jeff, nice post, still applicable today 🙂

    Is the string overwritten every time at login or a new line is inserted into the attribute?

    Share
  • Great to know, Thanks for the post.

    Share
  • Thanks, Awesome

    Share
  • I'd rather the batch file did everything.  But changing the font appears to be something it cannot easily do, so I looked online foe a solution and came up with this powershell solution, so I thought I'd try it.  This is where I'm at now:

    D:>powershell.exe -executionpolicy bypass -command "${Import-Module C:UsersAdrianDocumentsWindowsPowerShellModulesSetConsoleFontSetConsoleFont.psm1 -Verbose}"

    D:>powershell -command "&{Get-ConsoleFontInfo | Format-Table -AutoSize}"
    The term 'Get-ConsoleFontInfo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:22
    + &{Get-ConsoleFontInfo <<<<  | Format-Table -AutoSize}
    + CategoryInfo          : ObjectNotFound: (Get-ConsoleFontInfo:String) , CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    D:>dir C:UsersAdrianDocumentsWindowsPowerShellModulesSetConsoleFontSetConsoleFont.psm1
    Volume in drive C is OS

    Directory of C:UsersAdrianDocumentsWindowsPowerShellModulesSetConsoleFont

    03/22/2017  03:28 PM             3,546 SetConsoleFont.psm1
    1 File(s)          3,546 bytes

    Share
  • Profile picture of Michael Pietroforte

    Using a batch script to do PowerShell stuff is perhaps a bit uncommon. Why would you want to do that?

    I think your main problem is the execution policy. Maybe this helps. After you solved this problem, you should be able to configure the font in a PowerShell script.

    Share
  • Profile picture of Michael Pietroforte

    Do you mean Get-ADComputer? What command did you try to execute?

    Share
  • Installed AD module for powershell in windows 7 . AD-getcomputer command works but it doesnot recognizes "-properties *" . Any idea

    Share
  • Profile picture of Karthick

    Karthick became a registered member 4 days, 21 hours ago

    Share
  • Profile picture of Jerimiah Duncan

    Jerimiah Duncan became a registered member 4 days, 21 hours ago

    Share
  • I implemented what you say in a PowerShell console and it all works fine thanks.  However it doesn't look practical for me for the following reasons:

    I wish to change the font of new window seamlessly from a batch file, which will be run by users of the software.  They may not have Administrator access and so cannot execute "set-executionpolicy remotesigned" which I needed to do to get it working.

    Also this has to be done in a DOS batch file, so opening up a powershell window is not an option.  You mentioned that it only work in a PowerShell window and not with the DOS "powershell -command" option.

    Do you have any idea how I could get around the above limitations?

    Share
  • Profile picture of Paolo Maffezzoli
    Share
View All Activity

CONTACT US

Please ask IT administration questions in the forum. Any other messages are welcome.

Sending
© 4sysops 2006 - 2017
Do NOT follow this link or you will be banned from the site!

Log in with your credentials

or    

Forgot your details?

Create Account